Skip to content

Commit

Permalink
fix(editor): Revert header toggle fix (n8n-io#9800)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored and adrian-martinez-onestic committed Jun 20, 2024
1 parent 6fcc56f commit 841cfe3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/editor-ui/src/components/MainHeader/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 841cfe3

Please sign in to comment.