mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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) {
|
get(target, name, receiver) {
|
||||||
const nodeName = name.toString();
|
const nodeName = name.toString();
|
||||||
|
|
||||||
if (that.workflow.getNode(nodeName) === null) {
|
// TODO: re-enable this for v1.0.0 release
|
||||||
throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
// if (that.workflow.getNode(nodeName) === null) {
|
||||||
runIndex: that.runIndex,
|
// throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
||||||
itemIndex: that.itemIndex,
|
// runIndex: that.runIndex,
|
||||||
failExecution: true,
|
// itemIndex: that.itemIndex,
|
||||||
});
|
// failExecution: true,
|
||||||
}
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
return that.nodeDataGetter(nodeName);
|
return that.nodeDataGetter(nodeName);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue