fix: root page watch error Handling

This commit is contained in:
Ramesh Mane
2026-01-17 10:29:19 +00:00
parent 86c70b8974
commit 18f8d1508e

View File

@@ -62,22 +62,26 @@ async function handleRouteTypeIdChange() {
return
}
// avoid loading bases for shared base
if (route.value.params.typeOrId === 'base') {
try {
// avoid loading bases for shared base
if (route.value.params.typeOrId === 'base') {
await populateWorkspace()
return
}
if (!signedIn.value) {
navigateTo('/signIn')
return
}
// Load bases
await populateWorkspace()
return
}
if (!signedIn.value) {
navigateTo('/signIn')
return
}
// Load bases
await populateWorkspace()
if (!route.value.params.baseId && basesList.value.length > 0) {
await autoNavigateToProject()
if (!route.value.params.baseId && basesList.value.length > 0) {
await autoNavigateToProject()
}
} catch (e: any) {
console.error(e)
}
}