mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Fix $items().length behavior in executeOnce mode (#4694)
🐛 Fix `$items().length` in `executeOnce`
This commit is contained in:
@@ -1148,6 +1148,10 @@ export class WorkflowDataProxy {
|
|||||||
executionData = that.getNodeExecutionData(nodeName, false, outputIndex, runIndex);
|
executionData = that.getNodeExecutionData(nodeName, false, outputIndex, runIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (that.workflow.getNode(that.activeNodeName)?.executeOnce) {
|
||||||
|
executionData = that.connectionInputData.slice(0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
return executionData;
|
return executionData;
|
||||||
},
|
},
|
||||||
$json: {}, // Placeholder
|
$json: {}, // Placeholder
|
||||||
|
|||||||
Reference in New Issue
Block a user