mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix(editor): More securely clear executions tab auto refresh timer (#7685)
This commit is contained in:
parent
d2d11e0208
commit
37dd658dc5
|
@ -139,6 +139,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async beforeRouteLeave(to, from, next) {
|
async beforeRouteLeave(to, from, next) {
|
||||||
|
this.stopAutoRefreshInterval();
|
||||||
if (getNodeViewTab(to) === MAIN_HEADER_TABS.WORKFLOW) {
|
if (getNodeViewTab(to) === MAIN_HEADER_TABS.WORKFLOW) {
|
||||||
next();
|
next();
|
||||||
return;
|
return;
|
||||||
|
@ -350,6 +351,7 @@ export default defineComponent({
|
||||||
async startAutoRefreshInterval() {
|
async startAutoRefreshInterval() {
|
||||||
if (this.autoRefresh) {
|
if (this.autoRefresh) {
|
||||||
await this.loadAutoRefresh();
|
await this.loadAutoRefresh();
|
||||||
|
this.stopAutoRefreshInterval();
|
||||||
this.autoRefreshTimeout = setTimeout(() => {
|
this.autoRefreshTimeout = setTimeout(() => {
|
||||||
void this.startAutoRefreshInterval();
|
void this.startAutoRefreshInterval();
|
||||||
}, 4000);
|
}, 4000);
|
||||||
|
|
Loading…
Reference in a new issue