🐛 Fix bug that nodes without input data did run if "alwaysOutputData" was

activated #948
This commit is contained in:
Jan Oberhauser 2020-09-12 21:40:37 +02:00
parent 99f7eb2eca
commit 542e772e0c

View file

@ -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);
}
}
}
}