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
fix(print): don't skip child notes if parent note has to be skipped
Elian Doran2afc8d181df6
diff --git a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx b/apps/client/src/widgets/collections/legacy/ListPrintView.tsxindex e6b43f6f0b..8cde17687a 100644--- a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx+++ b/apps/client/src/widgets/collections/legacy/ListPrintView.tsx@@ -23,19 +23,19 @@ export function ListPrintView({ note, noteIds: unfilteredNoteIds, onReady, onProconst notesWithContent: NotesWithContent[] = [];async function processNote(note: FNote, depth: number) {- if (!isNotePrintable(note)) return;-- const content = await content_renderer.getRenderedContent(note, {- trim: false,- noChildrenList: true- });-- const contentEl = content.$renderedContent[0];-- insertPageTitle(contentEl, note.title);- rewriteHeadings(contentEl, depth);- noteIdsSet.add(note.noteId);- notesWithContent.push({ note, contentEl });+ if (isNotePrintable(note)) {+ const content = await content_renderer.getRenderedContent(note, {+ trim: false,+ noChildrenList: true+ });++ const contentEl = content.$renderedContent[0];++ insertPageTitle(contentEl, note.title);+ rewriteHeadings(contentEl, depth);+ noteIdsSet.add(note.noteId);+ notesWithContent.push({ note, contentEl });+ }if (onProgressChanged) {onProgressChanged(notesWithContent.length / noteIdsWithChildren.length);