Skip to content

Commit ba1a09a

Browse files
RachanaRachana
authored andcommitted
Merge remote-tracking branch 'sprank/issue-36243' into BUG#6847
2 parents 97e33f5 + 00ea64a commit ba1a09a

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)