Skip to content

Commit 6d4065a

Browse files
FrodigoMastiuhin Oleksandr
authored and
Mastiuhin Oleksandr
committed
#13820: IE11 minicart not updating on configurable product page (ES6) - replace array.find to underscore.find in options-updater.js
1 parent 447a24d commit 6d4065a

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)