fix: warnings in ui

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2023-09-06 16:41:50 +03:00
parent 4d407c5a40
commit 9b20269d08
10 changed files with 32 additions and 18 deletions

View File

@@ -52,6 +52,7 @@ async function loadBases(changed?: boolean) {
try {
if (changed) refreshCommandPalette()
await until(() => !!project.value.id).toBeTruthy()
isReloading.value = true
vReload.value = true
const baseList = await $api.base.list(project.value.id as string)
@@ -164,8 +165,7 @@ const forceAwaken = () => {
onMounted(async () => {
if (sources.value.length === 0) {
await loadBases()
await loadMetaDiff()
loadBases()
}
})
@@ -174,7 +174,6 @@ watch(
async (reload) => {
if (reload && !isReloading.value) {
await loadBases()
await loadMetaDiff()
}
},
)