We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c1c2e4 commit 19c17f5Copy full SHA for 19c17f5
app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js
@@ -1247,17 +1247,12 @@ define([
1247
* @param {Array} images
1248
*/
1249
_setImageType: function (images) {
1250
- var initial = this.options.mediaGalleryInitial[0].img;
1251
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
+ images.map(function (img) {
+ if (!img.type) {
+ img.type = 'image';
+ }
+ });
1261
1262
return images;
1263
},
0 commit comments