π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix workspace bug
Smaug6739080495f05185
diff --git a/frontend/app/composables/useSidebarTree.ts b/frontend/app/composables/useSidebarTree.tsindex b3d1238f..55d9c9a4 100644--- a/frontend/app/composables/useSidebarTree.ts+++ b/frontend/app/composables/useSidebarTree.ts@@ -69,7 +69,7 @@ export function useSidebarTree() {// Filtered tree based on workspaceconst filtered = computed(() =>tree.value.filter(item => {- if (item.data.type === 'category' && workspaceId.value) return item.data.workspace_id === workspaceId.value && item.data.role == 1;+ if (item.data.type === 'category' && workspaceId.value) return item.data.parent_id === workspaceId.value && item.data.role == 1;if (item.data.type === 'document' && workspaceId.value) return item.data.category === workspaceId.value;return true;}),