From 943344b47314bc8a129c53a113382d42f18ff3c9 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 31 Dec 2020 15:00:55 +0100 Subject: [PATCH] :zap: Use empty data if parent node did execute but linked output does not have data #1286 --- packages/core/src/WorkflowExecute.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index c08ea2a020..3d4bbce23e 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -385,7 +385,7 @@ export class WorkflowExecute { } if (workflow.connectionsByDestinationNode[nodeToAdd] === undefined) { - // Add only node if it does not have any inputs becuase else it will + // Add only node if it does not have any inputs because else it will // be added by its input node later anyway. this.runExecutionData.executionData!.nodeExecutionStack.push( { @@ -728,8 +728,8 @@ export class WorkflowExecute { return Promise.reject(new Error(`The node "${executionNode.name}" connects to not found node "${connectionData.node}"`)); } - if (nodeSuccessData![outputIndex] && nodeSuccessData![outputIndex].length !== 0) { - // Add the node only if there is data for it to process + if (nodeSuccessData![outputIndex]) { + // Add the node only if it did execute this.addNodeToBeExecuted(workflow, connectionData, parseInt(outputIndex, 10), executionNode.name, nodeSuccessData!, runIndex); } }