mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Fix empty node execution stack (#12945)
This commit is contained in:
@@ -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;
|
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;
|
let destinationNode: string | undefined;
|
||||||
if (this.runExecutionData.startData && this.runExecutionData.startData.destinationNode) {
|
if (this.runExecutionData.startData && this.runExecutionData.startData.destinationNode) {
|
||||||
destinationNode = this.runExecutionData.startData.destinationNode;
|
destinationNode = this.runExecutionData.startData.destinationNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user