Skip to content

Commit 0611394

Browse files
author
niravkrish
committed
reolve comflict and remove unncessary code using compare with magento 2 core file
1 parent bbceaab commit 0611394

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,15 +1242,6 @@ define([
12421242
});
12431243
}
12441244

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-
12541245
} else if (justAnImage && justAnImage.img) {
12551246
context.find('.product-image-photo').attr('src', justAnImage.img);
12561247
}

0 commit comments

Comments
 (0)