diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 73494320a0f..122285db6b0 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -688,11 +688,15 @@ export default { const runUrl = `/workflows/run?id=${this.id}`; this.onNavigate(runUrl); }, - onNavigate(url) { - this.onSave(true).then(() => { - this.hasChanges = false; - this.$router.push(url); - }); + async onNavigate(url) { + if (this.isNewTempWorkflow) { + await this.onCreate(); + } else { + await this.onSave(true); + } + + this.hasChanges = false; + this.$router.push(url); }, onSave(hideProgress = false) { if (!this.nameValidate()) { diff --git a/client/src/entry/analysis/modules/WorkflowEditor.vue b/client/src/entry/analysis/modules/WorkflowEditor.vue index 3ef6913db65..9ed4b55b3b9 100644 --- a/client/src/entry/analysis/modules/WorkflowEditor.vue +++ b/client/src/entry/analysis/modules/WorkflowEditor.vue @@ -1,6 +1,7 @@