diff --git a/packages/editor-ui/src/components/MainHeader/MainHeader.vue b/packages/editor-ui/src/components/MainHeader/MainHeader.vue index c70b3a573d..8f484042cb 100644 --- a/packages/editor-ui/src/components/MainHeader/MainHeader.vue +++ b/packages/editor-ui/src/components/MainHeader/MainHeader.vue @@ -98,21 +98,9 @@ export default defineComponent({ beforeMount() { this.pushConnection.initialize(); }, - async mounted() { + mounted() { this.dirtyState = this.uiStore.stateIsDirty; this.syncTabsWithRoute(this.$route); - - if (this.workflowsStore.workflow.id === PLACEHOLDER_EMPTY_WORKFLOW_ID) { - const workflowId = this.$route.params.name as string; - const workflow = await this.workflowsStore.fetchWorkflow(workflowId); - - this.workflowsStore.setWorkflowId(workflowId); - - if (workflow.active) { - this.workflowsStore.setWorkflowActive(workflowId); - this.workflowsStore.setActive(workflow.active); - } - } }, beforeUnmount() { this.pushConnection.terminate();