Skip to content

Commit 622538a

Browse files
author
Yurii Hryhoriev
committed
MAGETWO-52060: Layered Navigation: Image placeholder shown on selected swatch instead of parent image
- displaying base image for swatch variations without image
1 parent e911f08 commit 622538a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -825,16 +825,12 @@ define([
825825
return e.hasOwnProperty('large') && e.hasOwnProperty('medium') && e.hasOwnProperty('small');
826826
};
827827

828-
if (_.size($widget) < 1) {
828+
if (_.size($widget) < 1 || !support(response)) {
829829
this.updateBaseImage(this.options.mediaGalleryInitial, $main, isProductViewExist);
830830

831831
return;
832832
}
833833

834-
if (!support(response)) {
835-
return;
836-
}
837-
838834
images.push({
839835
full: response.large,
840836
img: response.medium,

0 commit comments

Comments
 (0)