🐛 Fix issue that expression did not resolve correctly for not

existing node and parameter
This commit is contained in:
Jan Oberhauser 2022-02-19 12:38:46 +01:00
parent d37fc19d84
commit 005e726cc6

View file

@ -171,7 +171,7 @@ export class WorkflowDataProxy {
} else { } else {
if (!node.parameters.hasOwnProperty(name)) { if (!node.parameters.hasOwnProperty(name)) {
// Parameter does not exist on node // Parameter does not exist on node
throw new Error(`Could not find parameter "${name}" on node "${nodeName}"`); return undefined;
} }
returnValue = node.parameters[name]; returnValue = node.parameters[name];
@ -299,7 +299,7 @@ export class WorkflowDataProxy {
const node = this.workflow.nodes[nodeName]; const node = this.workflow.nodes[nodeName];
if (!node) { if (!node) {
throw new Error(`The node "${nodeName}" does not exist!`); return undefined;
} }
return new Proxy( return new Proxy(