From 37dd658dc5bc1128c91d86105bf7f49dfcf96985 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 10 Nov 2023 14:51:49 +0100 Subject: [PATCH] fix(editor): More securely clear executions tab auto refresh timer (#7685) --- .../editor-ui/src/components/ExecutionsView/ExecutionsList.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue b/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue index aeffa1e80f..4f0763b648 100644 --- a/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue +++ b/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue @@ -139,6 +139,7 @@ export default defineComponent({ }, }, async beforeRouteLeave(to, from, next) { + this.stopAutoRefreshInterval(); if (getNodeViewTab(to) === MAIN_HEADER_TABS.WORKFLOW) { next(); return; @@ -350,6 +351,7 @@ export default defineComponent({ async startAutoRefreshInterval() { if (this.autoRefresh) { await this.loadAutoRefresh(); + this.stopAutoRefreshInterval(); this.autoRefreshTimeout = setTimeout(() => { void this.startAutoRefreshInterval(); }, 4000);