fix possible bug when looking for incomplete steps
@@ -134,7 +134,7 @@ export class Step {
findFirstIncompleteDependentStep(){
let dependentSteps = this.findDependsUponSteps();
if (dependentSteps) {
- let step = dependentSteps.sort((x:Step,y:Step) => x.number > y.number ? 1 : 0).filter(step => !step.hidden).find(step => step != undefined && step.complete == false);
+ let step = dependentSteps.sort((x:Step,y:Step) => x.number > y.number ? 1 : 0).filter(step => step != undefined && !step.hidden).find(step => step.complete == false);
return step != undefined ? step : null
}
return null;
