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
fix(export/zip): hidden note appears in tree (closes #8714)
Elian Doranca672c68a3be
diff --git a/apps/server/src/becca/entities/bnote.ts b/apps/server/src/becca/entities/bnote.tsindex e67d8928be..112543a603 100644--- a/apps/server/src/becca/entities/bnote.ts+++ b/apps/server/src/becca/entities/bnote.ts@@ -1718,7 +1718,10 @@ class BNote extends AbstractBeccaEntity<BNote> {}getVisibleChildBranches() {- return this.getChildBranches().filter((branch) => !branch.getNote().isLabelTruthy("shareHiddenFromTree"));+ return this.getChildBranches().filter((branch) => {+ const note = branch.getNote();+ return !note.isLabelTruthy("shareHiddenFromTree") && !note.noteId.startsWith("_");+ });}getVisibleChildNotes() {