chore: prevent duplicate watchers
This commit is contained in:
parent
8f6d53a029
commit
c586d4fb21
|
|
@ -167,7 +167,15 @@ async function getDashboard() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function waitForInitAndLoadDashboard() {
|
function waitForInitAndLoadDashboard() {
|
||||||
// Start the loading timer
|
if (loadingTimer) {
|
||||||
|
clearInterval(loadingTimer)
|
||||||
|
loadingTimer = null
|
||||||
|
}
|
||||||
|
if (checkInitInterval) {
|
||||||
|
clearInterval(checkInitInterval)
|
||||||
|
checkInitInterval = null
|
||||||
|
}
|
||||||
|
|
||||||
loadingTime.value = 0
|
loadingTime.value = 0
|
||||||
loadingTimer = setInterval(() => {
|
loadingTimer = setInterval(() => {
|
||||||
loadingTime.value++
|
loadingTime.value++
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue