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
don't export hidden subtree to ZIP, fixes #2555
zadamc8884f19177e
diff --git a/src/services/export/zip.js b/src/services/export/zip.jsindex 3e8e3ad4a5..7091270efd 100644--- a/src/services/export/zip.js+++ b/src/services/export/zip.js@@ -150,7 +150,8 @@ function exportToZip(taskContext, branch, format, res) {noteIdToMeta[note.noteId] = meta;- const childBranches = note.getChildBranches();+ const childBranches = note.getChildBranches()+ .filter(branch => branch.noteId !== 'hidden');const available = !note.isProtected || protectedSessionService.isProtectedSessionAvailable();