mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Fix bug that nodes without input data did run if "alwaysOutputData" was
activated #948
This commit is contained in:
parent
99f7eb2eca
commit
542e772e0c
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue