From c8884f19177e74f3323a6bd679de71cd1a2473d7 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 15 Jan 2022 09:04:44 +0100 Subject: [PATCH] don't export hidden subtree to ZIP, fixes #2555 --- src/services/export/zip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/export/zip.js b/src/services/export/zip.js index 3e8e3ad4a..7091270ef 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();