From 4e8c054bf76c7080865e5ba4f3110f224a6079a1 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 15 Dec 2023 17:36:13 +0100 Subject: [PATCH 1/2] fix(editor): Cleanup Executions page component --- packages/editor-ui/src/components/ExecutionsList.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/ExecutionsList.vue b/packages/editor-ui/src/components/ExecutionsList.vue index 2357ed0f8084e..bb4c60de2f3b5 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'); From c551031c97220b835fcce4b3e757f7467656b153 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 15 Dec 2023 17:52:34 +0100 Subject: [PATCH 2/2] fix(editor): Update route name in auto-refresh condition --- packages/editor-ui/src/components/ExecutionsList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ExecutionsList.vue b/packages/editor-ui/src/components/ExecutionsList.vue index bb4c60de2f3b5..d62756daae008 100644 --- a/packages/editor-ui/src/components/ExecutionsList.vue +++ b/packages/editor-ui/src/components/ExecutionsList.vue @@ -943,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();