fix(export/zip): hidden note appears in tree (closes #8714)

This commit is contained in:
Elian Doran
2026-02-21 10:02:42 +02:00
parent 416e11a32b
commit ca672c68a3

View File

@@ -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() {