fix(editor): Fix node execution errors showing undefined (#9487)

This commit is contained in:
Elias Meire
2024-05-22 15:54:25 +02:00
committed by GitHub
parent a217866cef
commit 62ee796895
6 changed files with 272 additions and 31 deletions

View File

@@ -837,13 +837,10 @@ export default defineComponent({
return Boolean(this.workflowsStore.subWorkflowExecutionError);
},
workflowRunErrorAsNodeError(): NodeError {
return {
node: this.node,
messages: [this.workflowRunData?.[this.node?.name]?.[this.runIndex]?.error?.message ?? ''],
} as NodeError;
return this.workflowRunData?.[this.node?.name]?.[this.runIndex]?.error as NodeError;
},
hasRunError(): boolean {
return Boolean(this.node && this.workflowRunData?.[this.node.name]?.[this.runIndex]?.error);
return Boolean(this.node && this.workflowRunErrorAsNodeError);
},
executionHints(): NodeHint[] {
if (this.hasNodeRun) {