fix(core): Fix $items().length behavior in executeOnce mode (#4694)

🐛 Fix `$items().length` in `executeOnce`
This commit is contained in:
Iván Ovejero 2022-11-22 16:24:16 +01:00 committed by GitHub
parent 740513b424
commit b87c12285f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1148,6 +1148,10 @@ export class WorkflowDataProxy {
executionData = that.getNodeExecutionData(nodeName, false, outputIndex, runIndex);
}
if (that.workflow.getNode(that.activeNodeName)?.executeOnce) {
executionData = that.connectionInputData.slice(0, 1);
}
return executionData;
},
$json: {}, // Placeholder