Skip to content

Commit

Permalink
Skip objects without path for LGX
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Apr 27, 2024
1 parent 73112b6 commit 00802c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,16 @@ function isImageLgxCompatible(image) {
return false;
}
} else {
return true;
if (image.hasOwnProperty('path')) {
return true;
} else {
return false;
}
}
}

function isImageLgxRequired(image) {
return typeof image !== 'string';
return typeof image !== 'string' && image.hasOwnProperty('path');
}

function shouldProcessImageArray(images) {
Expand Down

0 comments on commit 00802c1

Please sign in to comment.