mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(editor): More securely clear executions tab auto refresh timer (#7685)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user