Skip to content

Commit 66b7fc7

Browse files
committed
MC-21203: x-magento-init initialisation not bound to happen in the right order
1 parent c733c5d commit 66b7fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/view/frontend/web/js/section-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ define(['underscore'], function (_) {
5050
return route.indexOf(section) === 0;
5151
});
5252

53-
return _.union(actions, sections['*']);
53+
return _.union(_.toArray(actions), _.toArray(sections['*']));
5454
},
5555

5656
/**
@@ -59,7 +59,7 @@ define(['underscore'], function (_) {
5959
* @return {Array} - List of filtered sections.
6060
*/
6161
filterClientSideSections: function (allSections) {
62-
return _.difference(allSections, clientSideSections);
62+
return _.difference(_.toArray(allSections), clientSideSections);
6363
},
6464

6565
/**

0 commit comments

Comments
 (0)