Skip to content

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

fix: switch to base home if no views

DarkPhoenix2704a253254ceed1
diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue
index 514faf7d58..f136f98dca 100644
--- a/packages/nc-gui/components/tabs/Smartsheet.vue
+++ b/packages/nc-gui/components/tabs/Smartsheet.vue
@@ -230,7 +230,10 @@ const onReady = () => {
}
onMounted(async () => {
- await until(isViewsLoading).toBe(false)
+ await until(() => isViewsLoading.value).toBe(false)
+ await until(() => !!activeView.value).toBeTruthy({
+ timeout: 2000,
+ })
if (!activeView.value) {
ncNavigateTo({
@@ -240,7 +243,7 @@ onMounted(async () => {
}
})
-watch([() => isViewsLoading.value, () => activeView.value], ([isLoading, _]) => {
+watch([() => isViewsLoading.value], ([isLoading, _]) => {
if (!isLoading && !activeView.value) {
ncNavigateTo({
workspaceId: activeWorkspaceId.value,