diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 73494320a0fa..c02300e411de 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -688,11 +688,14 @@ 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(); + } + + await this.onSave(true); + this.hasChanges = false; + this.$router.push(url); }, onSave(hideProgress = false) { if (!this.nameValidate()) {