Skip to content

Commit

Permalink
taken changes from #17690
Browse files Browse the repository at this point in the history
  • Loading branch information
bgambocjaviniar committed Jul 28, 2023
1 parent b428f3c commit 82b7ab1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ProductImageNormalizer implements Converter<Occ.Product, Product> {
const images: Images = {};
if (source) {
for (const image of source) {
const isList = image.hasOwnProperty('galleryIndex');
const isList = !isNaN(Number(image.galleryIndex));
if (image.imageType) {
if (!images.hasOwnProperty(image.imageType)) {
images[image.imageType] = isList ? [] : {};
Expand Down

0 comments on commit 82b7ab1

Please sign in to comment.