File tree 1 file changed +3
-4
lines changed
app/code/Magento/Swatches/view/frontend/web/js
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,8 @@ define([
713
713
$wrapper = $this . parents ( '.' + $widget . options . classes . attributeOptionsWrapper ) ,
714
714
$label = $parent . find ( '.' + $widget . options . classes . attributeSelectedOptionLabelClass ) ,
715
715
attributeId = $parent . attr ( 'attribute-id' ) ,
716
- $input = $parent . find ( '.' + $widget . options . classes . attributeInput ) ;
716
+ $input = $parent . find ( '.' + $widget . options . classes . attributeInput ) ,
717
+ checkAdditionalData = JSON . parse ( this . options . jsonSwatchConfig [ attributeId ] [ 'additional_data' ] ) ;
717
718
718
719
if ( $widget . inProductList ) {
719
720
$input = $widget . productForm . find (
@@ -753,9 +754,7 @@ define([
753
754
$widget . options . jsonConfig . optionPrices
754
755
] ) ;
755
756
756
- var checkAdditionalData = JSON . parse ( this . options . jsonSwatchConfig [ attributeId ] [ 'additional_data' ] ) ;
757
-
758
- if ( 1 == checkAdditionalData [ 'update_product_preview_image' ] ) {
757
+ if ( checkAdditionalData [ 'update_product_preview_image' ] === '1' ) {
759
758
$widget . _loadMedia ( ) ;
760
759
}
761
760
You can’t perform that action at this time.
0 commit comments