mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Fix disabled parent output in partial execution (#3946)
🐛 Skip disabled parent in partial execution
This commit is contained in:
@@ -192,6 +192,9 @@ export class WorkflowExecute {
|
||||
for (const connections of incomingNodeConnections.main) {
|
||||
for (let inputIndex = 0; inputIndex < connections.length; inputIndex++) {
|
||||
connection = connections[inputIndex];
|
||||
|
||||
if (workflow.getNode(connection.node)?.disabled) continue;
|
||||
|
||||
incomingData.push(
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
runData[connection.node][runIndex].data![connection.type][connection.index]!,
|
||||
@@ -257,7 +260,10 @@ export class WorkflowExecute {
|
||||
// Only run the parent nodes and no others
|
||||
let runNodeFilter: string[] | undefined;
|
||||
// eslint-disable-next-line prefer-const
|
||||
runNodeFilter = workflow.getParentNodes(destinationNode);
|
||||
runNodeFilter = workflow
|
||||
.getParentNodes(destinationNode)
|
||||
.filter((parentNodeName) => !workflow.getNode(parentNodeName)?.disabled);
|
||||
|
||||
runNodeFilter.push(destinationNode);
|
||||
|
||||
this.runExecutionData = {
|
||||
|
||||
Reference in New Issue
Block a user