mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(core): Fix $items().length
behavior in executeOnce
mode (#4694)
🐛 Fix `$items().length` in `executeOnce`
This commit is contained in:
parent
740513b424
commit
b87c12285f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue