Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Update apps/server/src/services/llm/tools/hierarchy_tools.ts
Tomas Adamek49476d72fcd0
diff --git a/apps/server/src/services/llm/tools/hierarchy_tools.ts b/apps/server/src/services/llm/tools/hierarchy_tools.tsindex e111cb5687..b668b2380b 100644--- a/apps/server/src/services/llm/tools/hierarchy_tools.ts+++ b/apps/server/src/services/llm/tools/hierarchy_tools.ts@@ -120,6 +120,9 @@ export const hierarchyTools = defineTools({if (!targetParent.isContentAvailable()) {return { error: "Cannot move note to a protected parent" };}+ if (!targetParent.isContentAvailable()) {+ return { error: "Cannot move note to a protected parent" };+ }// Use the first (primary) parent branch for the moveconst branches = note.getParentBranches();