mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix issue that expression did not resolve correctly for not
existing node and parameter
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user