Skip to content

Commit f7c867c

Browse files
author
Stanislav Idolov
authored
ENGCOM-978: [Forwardport] #13820: IE11 minicart not updating on configurable pr… #14192
2 parents 9422217 + f8fed92 commit f7c867c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/options-updater.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
define([
22
'jquery',
3+
'underscore',
34
'Magento_Customer/js/customer-data'
4-
], function ($, customerData) {
5+
], function ($, _, customerData) {
56
'use strict';
67

78
var selectors = {
@@ -23,7 +24,7 @@ define([
2324
if (!(data && data.items && data.items.length && productId)) {
2425
return false;
2526
}
26-
changedProductOptions = data.items.find(function (item) {
27+
changedProductOptions = _.find(data.items, function (item) {
2728
return item['product_id'] === productId;
2829
});
2930
changedProductOptions = changedProductOptions && changedProductOptions.options &&

0 commit comments

Comments
 (0)