mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Remove nodeGetter
checks (#4883)
🔥 Remove `nodeGetter` checks
This commit is contained in:
parent
b689d2d7c2
commit
07b2f7678c
|
@ -583,28 +583,6 @@ export class WorkflowDataProxy {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
|
||||||
nodeName !== that.activeNodeName &&
|
|
||||||
!that.runExecutionData?.resultData.runData?.hasOwnProperty(nodeName)
|
|
||||||
) {
|
|
||||||
throw new ExpressionError(`no data, execute "${nodeName}" node first`, {
|
|
||||||
runIndex: that.runIndex,
|
|
||||||
itemIndex: that.itemIndex,
|
|
||||||
failExecution: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
|
||||||
nodeName !== that.activeNodeName &&
|
|
||||||
!that.workflow.getNodeConnectionIndexes(that.activeNodeName, nodeName, 'main')
|
|
||||||
) {
|
|
||||||
throw new ExpressionError(`connect "${that.activeNodeName}" to "${nodeName}"`, {
|
|
||||||
runIndex: that.runIndex,
|
|
||||||
itemIndex: that.itemIndex,
|
|
||||||
failExecution: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return that.nodeDataGetter(nodeName);
|
return that.nodeDataGetter(nodeName);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue