Skip to content

Commit 19c17f5

Browse files
committed
ACP2E-295: Removed the condition from swatch-rendered.js file
1 parent 2c1c2e4 commit 19c17f5

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,17 +1247,12 @@ define([
12471247
* @param {Array} images
12481248
*/
12491249
_setImageType: function (images) {
1250-
var initial = this.options.mediaGalleryInitial[0].img;
12511250

1252-
if (images[0].img === initial && images.length === 1) {
1253-
images = $.extend(true, [], this.options.mediaGalleryInitial);
1254-
} else {
1255-
images.map(function (img) {
1256-
if (!img.type) {
1257-
img.type = 'image';
1258-
}
1259-
});
1260-
}
1251+
images.map(function (img) {
1252+
if (!img.type) {
1253+
img.type = 'image';
1254+
}
1255+
});
12611256

12621257
return images;
12631258
},

0 commit comments

Comments
 (0)