mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
⚡ Use empty data if parent node did execute but linked output does not have
data #1286
This commit is contained in:
parent
b68377b74f
commit
943344b473
|
@ -385,7 +385,7 @@ export class WorkflowExecute {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (workflow.connectionsByDestinationNode[nodeToAdd] === undefined) {
|
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.
|
// be added by its input node later anyway.
|
||||||
this.runExecutionData.executionData!.nodeExecutionStack.push(
|
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}"`));
|
return Promise.reject(new Error(`The node "${executionNode.name}" connects to not found node "${connectionData.node}"`));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nodeSuccessData![outputIndex] && nodeSuccessData![outputIndex].length !== 0) {
|
if (nodeSuccessData![outputIndex]) {
|
||||||
// Add the node only if there is data for it to process
|
// Add the node only if it did execute
|
||||||
this.addNodeToBeExecuted(workflow, connectionData, parseInt(outputIndex, 10), executionNode.name, nodeSuccessData!, runIndex);
|
this.addNodeToBeExecuted(workflow, connectionData, parseInt(outputIndex, 10), executionNode.name, nodeSuccessData!, runIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue