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 80effc4 commit 567082bCopy full SHA for 567082b
app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js
@@ -71,7 +71,9 @@ define([
71
this.options.values = this.options.spConfig.defaultValues || {};
72
this.options.parentImage = $('[data-role=base-image-container] img').attr('src');
73
74
- this.initialGalleryImages = $(this.options.mediaGallerySelector).gallery('option', 'images');
+ this.initialGalleryImages = $(this.options.mediaGallerySelector).data('mageGallery')
75
+ ? $(this.options.mediaGallerySelector).gallery('option', 'images')
76
+ : [];
77
this.inputSimpleProduct = this.element.find(this.options.selectSimpleProduct);
78
},
79
0 commit comments