Skip to content

Commit

Permalink
magento#19184: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Apr 30, 2019
1 parent 01e8ff1 commit 73ef119
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ define([
$wrapper = $this.parents('.' + $widget.options.classes.attributeOptionsWrapper),
$label = $parent.find('.' + $widget.options.classes.attributeSelectedOptionLabelClass),
attributeId = $parent.attr('attribute-id'),
$input = $parent.find('.' + $widget.options.classes.attributeInput);
$input = $parent.find('.' + $widget.options.classes.attributeInput),
checkAdditionalData = JSON.parse(this.options.jsonSwatchConfig[attributeId]['additional_data']);

if ($widget.inProductList) {
$input = $widget.productForm.find(
Expand Down Expand Up @@ -753,9 +754,7 @@ define([
$widget.options.jsonConfig.optionPrices
]);

var checkAdditionalData = JSON.parse(this.options.jsonSwatchConfig[attributeId]['additional_data']);

if (1 == checkAdditionalData['update_product_preview_image']) {
if (checkAdditionalData['update_product_preview_image'] === '1') {
$widget._loadMedia();
}

Expand Down

0 comments on commit 73ef119

Please sign in to comment.