Skip to content

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

fix: debug

DarkPhoenix2704e39e531af6d9
diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue
index dabd8b0df4..620dbbafbf 100644
--- a/packages/nc-gui/components/tabs/Smartsheet.vue
+++ b/packages/nc-gui/components/tabs/Smartsheet.vue
@@ -234,6 +234,8 @@ const onReady = () => {
onMounted(async () => {
await until(() => isViewsLoading.value).toBe(false)
+ console.log('ONMOUNTED - BEFORE, loadViews', JSON.parse(JSON.stringify(activeView.value)))
+
const views = await viewStore.loadViews()
// If no views exist or the current view is not found, navigate to workspace/base
@@ -241,6 +243,8 @@ onMounted(async () => {
!views?.length ||
!views.find((view) => view.id === activeViewTitleOrId.value || view.title === activeViewTitleOrId.value)
) {
+ console.log('No views found During onMOUNTED', JSON.parse(JSON.stringify(views)))
+
ncNavigateTo({
workspaceId: activeWorkspaceId.value,
baseId: activeProjectId.value,
@@ -250,6 +254,7 @@ onMounted(async () => {
watch([() => isViewsLoading.value], ([isLoading]) => {
if (!isLoading && !activeView.value) {
+ console.log('No views found During WATCH', JSON.parse(JSON.stringify(activeView.value)))
ncNavigateTo({
workspaceId: activeWorkspaceId.value,
baseId: activeProjectId.value,
diff --git a/packages/nc-gui/composables/useMetas.ts b/packages/nc-gui/composables/useMetas.ts
index 3cfed41c61..bc32b57178 100644
--- a/packages/nc-gui/composables/useMetas.ts
+++ b/packages/nc-gui/composables/useMetas.ts
@@ -104,6 +104,7 @@ export const useMetas = createSharedComposable(() => {
}
if (navigateOnNotFound) {
+ console.log('navigateOnNotFound - useMETA')
ncNavigateTo({
workspaceId: activeWorkspaceId.value,
baseId: activeProjectId.value,