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)" />