mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix: Don't throw error on expressions referring to nodes that don't exist in the workflow (#5155)
This commit is contained in:
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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue