From f8c05c8790490c1bc0cf767687ec474f6865fb59 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 26 Feb 2015 16:05:50 -0700 Subject: [PATCH] crmUiWizard - Fix error when first wizard step is conditional --- js/angular-crm-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index 01be585407..34450648bf 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -734,7 +734,7 @@ this.$last = function() { return this.$index() === steps.length -1; }; this.$maxVisit = function() { return maxVisited; }; this.$validStep = function() { - return steps[selectedIndex].isStepValid(); + return steps[selectedIndex] && steps[selectedIndex].isStepValid(); }; this.iconFor = function(index) { if (index < this.$index()) return '√'; -- 2.25.1