mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
chore: More tests for Workflow.ts (#13349)
This commit is contained in:
committed by
GitHub
parent
81282bd5c0
commit
1d03c2c8ca
@@ -2001,11 +2001,7 @@ export class WorkflowExecute {
|
||||
ensureInputData(workflow: Workflow, executionNode: INode, executionData: IExecuteData): boolean {
|
||||
const inputConnections = workflow.connectionsByDestinationNode[executionNode.name]?.main ?? [];
|
||||
for (let connectionIndex = 0; connectionIndex < inputConnections.length; connectionIndex++) {
|
||||
const highestNodes = workflow.getHighestNode(
|
||||
executionNode.name,
|
||||
NodeConnectionType.Main,
|
||||
connectionIndex,
|
||||
);
|
||||
const highestNodes = workflow.getHighestNode(executionNode.name, connectionIndex);
|
||||
if (highestNodes.length === 0) {
|
||||
// If there is no valid incoming node (if all are disabled)
|
||||
// then ignore that it has inputs and simply execute it as it is without
|
||||
|
||||
Reference in New Issue
Block a user