From 2689c37e87c5b3ae5029121f4d3dc878841e8844 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 15 Dec 2023 18:18:25 +0100 Subject: [PATCH] fix(editor): Cleanup Executions page component (#8053) ## Summary Remove duplicated `created` VUE component lifecycle method --- packages/editor-ui/src/components/ExecutionsList.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/editor-ui/src/components/ExecutionsList.vue b/packages/editor-ui/src/components/ExecutionsList.vue index 2357ed0f8084e..d62756daae008 100644 --- a/packages/editor-ui/src/components/ExecutionsList.vue +++ b/packages/editor-ui/src/components/ExecutionsList.vue @@ -364,9 +364,6 @@ export default defineComponent({ workflows: [] as IWorkflowShortResponse[], }; }, - created() { - this.autoRefresh = this.autoRefreshEnabled; - }, mounted() { setPageTitle(`n8n - ${this.pageTitle}`); @@ -374,6 +371,7 @@ export default defineComponent({ document.addEventListener('visibilitychange', this.onDocumentVisibilityChange); }, async created() { + this.autoRefresh = this.autoRefreshEnabled; await this.loadWorkflows(); void this.externalHooks.run('executionsList.openDialog'); @@ -945,7 +943,7 @@ export default defineComponent({ } }, async startAutoRefreshInterval() { - if (this.autoRefresh && this.route.name === VIEWS.WORKFLOW_EXECUTIONS) { + if (this.autoRefresh && this.route.name === VIEWS.EXECUTIONS) { await this.loadAutoRefresh(); this.autoRefreshTimeout = setTimeout(() => { void this.startAutoRefreshInterval();