From c586d4fb21303edfe7aca4eac3feb05c152f3cea Mon Sep 17 00:00:00 2001 From: jamesread Date: Mon, 15 Jun 2026 00:56:27 +0100 Subject: [PATCH] chore: prevent duplicate watchers --- frontend/resources/vue/Dashboard.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/resources/vue/Dashboard.vue b/frontend/resources/vue/Dashboard.vue index 5e3572d..d09c333 100644 --- a/frontend/resources/vue/Dashboard.vue +++ b/frontend/resources/vue/Dashboard.vue @@ -167,7 +167,15 @@ async function getDashboard() { } function waitForInitAndLoadDashboard() { - // Start the loading timer + if (loadingTimer) { + clearInterval(loadingTimer) + loadingTimer = null + } + if (checkInitInterval) { + clearInterval(checkInitInterval) + checkInitInterval = null + } + loadingTime.value = 0 loadingTimer = setInterval(() => { loadingTime.value++