Fix bug in pipeline validation
@@ -136,10 +136,12 @@ export class PipelineComponent implements OnInit, OnDestroy {
}
validatePipeline() {
+ setTimeout(() => {
this.ngZone.run(() => {
this.pipelineValid = this.PipelineValidationService
.isValidPipeline(this.rawPipelineModel.filter(pe => !(pe.settings.disabled)), this.preview);
});
+ });
}
ngOnDestroy() {
@@ -281,6 +283,7 @@ export class PipelineComponent implements OnInit, OnDestroy {
this.EditorService.makePipelineAssemblyEmpty(true);
}
this.JsplumbBridge.repaintEverything();
+ this.validatePipeline();
this.triggerPipelineCacheUpdate();
}
