Skip to content

Commit 879f66e

Browse files
committed
Merge remote-tracking branch 'origin/BUG#6847' into spartans_pr_19012024
2 parents 96e5988 + ba1a09a commit 879f66e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,10 @@ define([
13091309
}
13101310

13111311
imagesToUpdate = images.length ? this._setImageType($.extend(true, [], images)) : [];
1312-
isInitial = _.isEqual(imagesToUpdate, initialImages);
1312+
isInitial = _.isEqual(
1313+
imagesToUpdate.map(({thumb, img, full, type, videoUrl}) => ({thumb, img, full, type, videoUrl})),
1314+
initialImages.map(({thumb, img, full, type, videoUrl}) => ({thumb, img, full, type, videoUrl}))
1315+
);
13131316

13141317
if (this.options.gallerySwitchStrategy === 'prepend' && !isInitial) {
13151318
imagesToUpdate = imagesToUpdate.concat(initialImages);

0 commit comments

Comments
 (0)