Continue to run validation even if graph-to-text conversion fails

This commit is contained in:
Andy Clement
2018-06-01 12:59:54 -07:00
parent f683c49591
commit 483faf1a1b

View File

@@ -868,6 +868,12 @@ export class EditorComponent implements OnInit, OnDestroy {
}
this.graphToTextConversionCompleted.next();
return this.validateContent();
})
.catch(error => {
// Validation may reveal why the graph couldn't be
// converted so let it run
this.graphToTextConversionCompleted.next();
return this.validateContent();
});
} else {
this.graphToTextConversionCompleted.next();