mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(core): Fix empty node execution stack (#12945)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
This commit is contained in:
parent
9d027339fd
commit
7031569a02
|
@ -1221,18 +1221,9 @@ export class WorkflowExecute {
|
|||
});
|
||||
}
|
||||
|
||||
/** Node execution stack will be empty for an execution containing only Chat Trigger. */
|
||||
const startNode = this.runExecutionData.executionData.nodeExecutionStack.at(0)?.node.name;
|
||||
|
||||
if (!startNode) {
|
||||
throw new ApplicationError('Failed to run workflow due to empty node execution stack', {
|
||||
extra: {
|
||||
workflowId: workflow.id,
|
||||
executionId: this.additionalData.executionId,
|
||||
mode: this.mode,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
let destinationNode: string | undefined;
|
||||
if (this.runExecutionData.startData && this.runExecutionData.startData.destinationNode) {
|
||||
destinationNode = this.runExecutionData.startData.destinationNode;
|
||||
|
|
Loading…
Reference in a new issue