Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix route to top categories

Smaug6739d7dcbb361dae
diff --git a/frontend/app/composables/useSidebarTree.ts b/frontend/app/composables/useSidebarTree.ts
index 4694db32..0a33f69f 100644
--- a/frontend/app/composables/useSidebarTree.ts
+++ b/frontend/app/composables/useSidebarTree.ts
@@ -17,7 +17,7 @@ export function useSidebarTree() {
id: cat.id,
parent_id: cat.parent_id || '',
label: cat.name,
- route: cat.parent_id ? `/dashboard/categories/${cat.id}` : '',
+ route: `/dashboard/categories/${cat.id}`,
icon: cat.icon || 'folder',
data: cat,
show: ref(getCollapseState(cat.id)),