Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: root page watch error Handling

Ramesh Mane18f8d1508e4c
diff --git a/packages/nc-gui/pages/index.vue b/packages/nc-gui/pages/index.vue
index 367867f316..3954068b8e 100644
--- a/packages/nc-gui/pages/index.vue
+++ b/packages/nc-gui/pages/index.vue
@@ -62,22 +62,26 @@ async function handleRouteTypeIdChange() {
return
}
- // avoid loading bases for shared base
- if (route.value.params.typeOrId === 'base') {
- await populateWorkspace()
- return
- }
+ try {
+ // avoid loading bases for shared base
+ if (route.value.params.typeOrId === 'base') {
+ await populateWorkspace()
+ return
+ }
- if (!signedIn.value) {
- navigateTo('/signIn')
- return
- }
+ if (!signedIn.value) {
+ navigateTo('/signIn')
+ return
+ }
- // Load bases
- await populateWorkspace()
+ // 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)
}
}