fix: Show error when referencing node that exist but has not been executed (#6496)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Ricardo Espinoza
2023-06-22 19:45:54 -04:00
committed by GitHub
parent 0e071724ee
commit 3db2707b8e
3 changed files with 27 additions and 2 deletions

View File

@@ -943,6 +943,10 @@ export class WorkflowDataProxy {
throw createExpressionError(`"${nodeName}" node doesn't exist`);
}
if (!that?.runExecutionData?.resultData?.runData.hasOwnProperty(nodeName)) {
throw createExpressionError(`no data, execute "${nodeName}" node first`);
}
return new Proxy(
{},
{