mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix: Ensure all new executions are saved (#7061)
This commit is contained in:
parent
8a8d4e8bb3
commit
b8e06d245f
|
@ -185,9 +185,7 @@ export const workflowRun = defineComponent({
|
||||||
startNodes.push(nodeName);
|
startNodes.push(nodeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isNewWorkflow = this.workflowsStore.isNewWorkflow;
|
if (this.workflowsStore.isNewWorkflow) {
|
||||||
const hasWebhookNode = this.workflowsStore.currentWorkflowHasWebhookNode;
|
|
||||||
if (isNewWorkflow && hasWebhookNode) {
|
|
||||||
await this.saveCurrentWorkflow();
|
await this.saveCurrentWorkflow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
currentWorkflowHasWebhookNode(): boolean {
|
currentWorkflowHasWebhookNode(): boolean {
|
||||||
return !!this.workflow.nodes.find((node: INodeUi) => !!node.webhookId);
|
return !!this.workflow.nodes.find((node: INodeUi) => !!node.webhookId); // includes Wait node
|
||||||
},
|
},
|
||||||
getWorkflowRunData(): IRunData | null {
|
getWorkflowRunData(): IRunData | null {
|
||||||
if (!this.workflowExecutionData?.data?.resultData) {
|
if (!this.workflowExecutionData?.data?.resultData) {
|
||||||
|
|
Loading…
Reference in a new issue