Skip to content

Commit

Permalink
Safer screenshots mapping (#669)
Browse files Browse the repository at this point in the history
Do not crush when screenshots is undefined
  • Loading branch information
Aliaksandr-Kasko-JazzTeam authored Nov 15, 2023
1 parent 3b987c8 commit 394686a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const MAPPINGS = {
screenshots: {
path: ['ds:5', 1, 2, 78, 0],
fun: (screenshots) => {
if (screenshots === null) return [];
if (!screenshots?.length) return [];
return screenshots.map(R.path([3, 2]));
}
},
Expand Down

0 comments on commit 394686a

Please sign in to comment.