Skip to content

Commit bf5bf0d

Browse files
MC-19669: Product images are not loaded when switching between variations
1 parent db43c11 commit bf5bf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ define([
754754
$widget.options.jsonConfig.optionPrices
755755
]);
756756

757-
if (checkAdditionalData['update_product_preview_image'] === '1') {
757+
if (parseInt(checkAdditionalData['update_product_preview_image']) === 1) {
758758
$widget._loadMedia();
759759
}
760760

0 commit comments

Comments
 (0)