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 bbceaab commit 0611394Copy full SHA for 0611394
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -1242,15 +1242,6 @@ define([
1242
});
1243
}
1244
1245
- if (typeof gallery === 'undefined') {
1246
- context.find(this.options.mediaGallerySelector).on('gallery:loaded', function (loadedGallery) {
1247
- loadedGallery = context.find(this.options.mediaGallerySelector).data('gallery');
1248
- loadedGallery.first();
1249
- }.bind(this));
1250
- } else {
1251
- gallery.first();
1252
- }
1253
-
1254
} else if (justAnImage && justAnImage.img) {
1255
context.find('.product-image-photo').attr('src', justAnImage.img);
1256
0 commit comments