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 6bcca0a commit 3c8997a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ function isImageLgxCompatible(image) {
return false;
}
} else {
return true;
return image.hasOwnProperty('path');
}
}

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

function shouldProcessImageArray(images) {
Expand Down

0 comments on commit 3c8997a

Please sign in to comment.