From 424aeda6e12e8f5371341e566244cd08c3b836aa Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 12 Dec 2024 04:09:14 +0100 Subject: [PATCH] fix workflow creation --- client/src/components/Workflow/Editor/Index.vue | 1 + client/src/entry/analysis/modules/WorkflowEditor.vue | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index dec4617e26d4..287d227488e1 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -819,6 +819,7 @@ export default { const { id, name, number_of_steps } = await this.services.createWorkflow(this); const message = `Created new workflow '${name}' with ${number_of_steps} steps.`; this.hasChanges = false; + this.$emit("skipNextReload"); await this.routeToWorkflow(id); Toast.success(message); } catch (e) { diff --git a/client/src/entry/analysis/modules/WorkflowEditor.vue b/client/src/entry/analysis/modules/WorkflowEditor.vue index c3010426c026..b05627cfbdb1 100644 --- a/client/src/entry/analysis/modules/WorkflowEditor.vue +++ b/client/src/entry/analysis/modules/WorkflowEditor.vue @@ -7,7 +7,8 @@ :initial-version="editorConfig.initialVersion" :module-sections="editorConfig.moduleSections" :workflow-tags="editorConfig.tags" - @update:confirmation="$emit('update:confirmation', $event)" /> + @update:confirmation="$emit('update:confirmation', $event)" + @skipNextReload="() => (skipNextReload = true)" />