don't export hidden subtree to ZIP, fixes #2555

This commit is contained in:
zadam 2022-01-15 09:04:44 +01:00
parent b679f4218d
commit c8884f1917

View file

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