chore: prevent duplicate watchers
This commit is contained in:
parent
8f6d53a029
commit
c586d4fb21
|
|
@ -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++
|
||||
|
|
|
|||
Loading…
Reference in New Issue