Skip to content

Commit 0111e09

Browse files
committed
ACP2E-295: Added additional check for image validation
1 parent 3e0bd1c commit 0111e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ define([
12491249
_setImageType: function (images) {
12501250
var initial = this.options.mediaGalleryInitial[0].img;
12511251

1252-
if (images[0].img === initial && images.length === this.options.mediaGalleryInitial.length) {
1252+
if (images[0].img === initial && images.length === 1) {
12531253
images = $.extend(true, [], this.options.mediaGalleryInitial);
12541254
} else {
12551255
images.map(function (img) {

0 commit comments

Comments
 (0)