Skip to content
Snippets Groups Projects
Commit 567082b5 authored by Vlad Veselov's avatar Vlad Veselov
Browse files

MAGETWO-35379: Gallery images are not loaded for Configurable Product

- adopt functionality in order to pass functional tests
parent 80effc47
Branches
No related merge requests found
......@@ -71,7 +71,9 @@ define([
this.options.values = this.options.spConfig.defaultValues || {};
this.options.parentImage = $('[data-role=base-image-container] img').attr('src');
this.initialGalleryImages = $(this.options.mediaGallerySelector).gallery('option', 'images');
this.initialGalleryImages = $(this.options.mediaGallerySelector).data('mageGallery')
? $(this.options.mediaGallerySelector).gallery('option', 'images')
: [];
this.inputSimpleProduct = this.element.find(this.options.selectSimpleProduct);
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment