fix(core): Remove nodeGetter checks (#4883)

🔥 Remove `nodeGetter` checks
This commit is contained in:
Iván Ovejero 2022-12-12 09:46:53 +01:00 committed by GitHub
parent b689d2d7c2
commit 07b2f7678c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
},
},