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.
1 parent 11d9560 commit e7f70abCopy full SHA for e7f70ab
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 steps;
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
+ steps = stepNavigator.steps();
34
35
+ if (steps.length) {
36
+ stepNavigator.setHash(steps.sort(stepNavigator.sortItems)[0].code);
37
+ }
38
}
39
40
stepNavigator.handleHash();
0 commit comments