chore: More tests for Workflow.ts (#13349)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-02-19 15:44:39 +01:00
committed by GitHub
parent 81282bd5c0
commit 1d03c2c8ca
4 changed files with 859 additions and 355 deletions

View File

@@ -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