chore: prevent duplicate watchers

This commit is contained in:
jamesread 2026-06-15 00:56:27 +01:00
parent 8f6d53a029
commit c586d4fb21
1 changed files with 9 additions and 1 deletions

View File

@ -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++