crmUiWizard - Fix error when first wizard step is conditional
authorTim Otten <totten@civicrm.org>
Thu, 26 Feb 2015 23:05:50 +0000 (16:05 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 2 Mar 2015 23:59:43 +0000 (15:59 -0800)
js/angular-crm-ui.js

index 01be58540784c99bff85d507cd051322f4a5c3bf..34450648bf93fc0088d5e0836bc81235918f44cb 100644 (file)
           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 '√';