mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Don't throw error on expressions referring to nodes that don't exist in the workflow (#5155)
This commit is contained in:
committed by
GitHub
parent
d10ca530cf
commit
b7faf4a0df
@@ -575,13 +575,14 @@ export class WorkflowDataProxy {
|
||||
get(target, name, receiver) {
|
||||
const nodeName = name.toString();
|
||||
|
||||
if (that.workflow.getNode(nodeName) === null) {
|
||||
throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
||||
runIndex: that.runIndex,
|
||||
itemIndex: that.itemIndex,
|
||||
failExecution: true,
|
||||
});
|
||||
}
|
||||
// TODO: re-enable this for v1.0.0 release
|
||||
// if (that.workflow.getNode(nodeName) === null) {
|
||||
// throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
||||
// runIndex: that.runIndex,
|
||||
// itemIndex: that.itemIndex,
|
||||
// failExecution: true,
|
||||
// });
|
||||
// }
|
||||
|
||||
return that.nodeDataGetter(nodeName);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user