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 e911f08 commit 622538aCopy full SHA for 622538a
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -825,16 +825,12 @@ define([
825
return e.hasOwnProperty('large') && e.hasOwnProperty('medium') && e.hasOwnProperty('small');
826
};
827
828
- if (_.size($widget) < 1) {
+ if (_.size($widget) < 1 || !support(response)) {
829
this.updateBaseImage(this.options.mediaGalleryInitial, $main, isProductViewExist);
830
831
return;
832
}
833
834
- if (!support(response)) {
835
- return;
836
- }
837
-
838
images.push({
839
full: response.large,
840
img: response.medium,
0 commit comments