mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Fix issue that expression did not resolve correctly for not
existing node and parameter
This commit is contained in:
parent
d37fc19d84
commit
005e726cc6
|
@ -171,7 +171,7 @@ export class WorkflowDataProxy {
|
|||
} else {
|
||||
if (!node.parameters.hasOwnProperty(name)) {
|
||||
// Parameter does not exist on node
|
||||
throw new Error(`Could not find parameter "${name}" on node "${nodeName}"`);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
returnValue = node.parameters[name];
|
||||
|
@ -299,7 +299,7 @@ export class WorkflowDataProxy {
|
|||
const node = this.workflow.nodes[nodeName];
|
||||
|
||||
if (!node) {
|
||||
throw new Error(`The node "${nodeName}" does not exist!`);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return new Proxy(
|
||||
|
|
Loading…
Reference in a new issue