We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df87365 + a0b13a0 commit d9c3a92Copy full SHA for d9c3a92
app/code/Magento/Checkout/view/frontend/web/js/view/progress-bar.js
@@ -24,11 +24,17 @@ define([
24
25
/** @inheritdoc */
26
initialize: function () {
27
+ var stepsValue;
28
+
29
this._super();
30
$(window).hashchange(_.bind(stepNavigator.handleHash, stepNavigator));
31
32
if (!window.location.hash) {
- stepNavigator.setHash(stepNavigator.steps().sort(stepNavigator.sortItems)[0].code);
33
+ stepsValue = stepNavigator.steps();
34
35
+ if (stepsValue.length) {
36
+ stepNavigator.setHash(stepsValue.sort(stepNavigator.sortItems)[0].code);
37
+ }
38
}
39
40
stepNavigator.handleHash();
0 commit comments