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: update useNodesTree to use the replacement of categoriestree

Smaug67398957bedb9066
diff --git a/frontend/app/pages/dashboard/settings/_views/other.vue b/frontend/app/pages/dashboard/settings/_views/other.vue
index 75e3e4cf..df28c35d 100644
--- a/frontend/app/pages/dashboard/settings/_views/other.vue
+++ b/frontend/app/pages/dashboard/settings/_views/other.vue
@@ -13,7 +13,7 @@ type InterfaceOption = Option & {
};
const nodesTree = useNodesTree();
-const categories = nodesTree.categoriesTree.value;
+const categories = nodesTree.treeUpToRole(2).value;
const options: Array<{ label: string; options: InterfaceOption[] }> = [
{
diff --git a/frontend/app/pages/dashboard/share-target.vue b/frontend/app/pages/dashboard/share-target.vue
index 52965ffd..d20a8914 100644
--- a/frontend/app/pages/dashboard/share-target.vue
+++ b/frontend/app/pages/dashboard/share-target.vue
@@ -80,7 +80,7 @@ const sharedFiles = ref<{ name: string; file: File; preview?: string }[]>([]);
const parentId = ref<string | undefined>(undefined);
const processing = ref(false);
-const categories = nodesTree.categoriesTree;
+const categories = nodesTree.treeUpToRole(2);
onMounted(async () => {
await retrieveSharedData();