From 542e772e0c1810173184627d02e36d97f65d899b Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 12 Sep 2020 21:40:37 +0200 Subject: [PATCH] :bug: Fix bug that nodes without input data did run if "alwaysOutputData" was activated #948 --- packages/core/src/WorkflowExecute.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 072689acfd..8bfe1a2d38 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -698,7 +698,10 @@ export class WorkflowExecute { return Promise.reject(new Error(`The node "${executionNode.name}" connects to not found node "${connectionData.node}"`)); } - this.addNodeToBeExecuted(workflow, connectionData, parseInt(outputIndex, 10), executionNode.name, nodeSuccessData!, runIndex); + if (nodeSuccessData![outputIndex] && nodeSuccessData![outputIndex].length !== 0) { + // Add the node only if there is data for it to process + this.addNodeToBeExecuted(workflow, connectionData, parseInt(outputIndex, 10), executionNode.name, nodeSuccessData!, runIndex); + } } } }