Skip to content

Commit c15e194

Browse files
committed
MAGETWO-99043: Shipping Methods Don't Load In IE11
1 parent 6f1a6f7 commit c15e194

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/address-converter.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ define([
99
'jquery',
1010
'Magento_Checkout/js/model/new-customer-address',
1111
'Magento_Customer/js/customer-data',
12-
'mage/utils/objects'
13-
], function ($, address, customerData, mageUtils) {
12+
'mage/utils/objects',
13+
'underscore'
14+
], function ($, address, customerData, mageUtils, _) {
1415
'use strict';
1516

1617
var countryData = customerData.get('directory-data');
@@ -59,13 +60,15 @@ define([
5960
delete addressData['region_id'];
6061

6162
if (addressData['custom_attributes']) {
62-
addressData['custom_attributes'] = Object.entries(addressData['custom_attributes'])
63-
.map(function (customAttribute) {
63+
addressData['custom_attributes'] = _.map(
64+
addressData['custom_attributes'],
65+
function (value, key) {
6466
return {
65-
'attribute_code': customAttribute[0],
66-
'value': customAttribute[1]
67+
'attribute_code': key,
68+
'value': value
6769
};
68-
});
70+
}
71+
);
6972
}
7073

7174
return address(addressData);

0 commit comments

Comments
 (0)