Skip to content

Commit

Permalink
ENGCOM-4296: Patch 18017 magento 23 #19635
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Mar 13, 2019
2 parents 1159204 + 5a9d6a5 commit ec90be5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,11 @@ define([

if (!_.isUndefined(gallery)) {
gallery.updateData(imagesToUpdate);
} else {
context.find(this.options.mediaGallerySelector).on('gallery:loaded', function (loadedGallery) {
loadedGallery = context.find(this.options.mediaGallerySelector).data('gallery');
loadedGallery.updateData(imagesToUpdate);
}.bind(this));
}

if (isInitial) {
Expand All @@ -1248,6 +1253,7 @@ define([
dataMergeStrategy: this.options.gallerySwitchStrategy
});
}

} else if (justAnImage && justAnImage.img) {
context.find('.product-image-photo').attr('src', justAnImage.img);
}
Expand Down

0 comments on commit ec90be5

Please sign in to comment.