From ca672c68a3beecf70ae97acdc939b760580a2b81 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 21 Feb 2026 10:02:42 +0200 Subject: [PATCH] fix(export/zip): hidden note appears in tree (closes #8714) --- apps/server/src/becca/entities/bnote.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/server/src/becca/entities/bnote.ts b/apps/server/src/becca/entities/bnote.ts index 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 { } 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() {