From 2afc8d181df6757b63b44ae55d748c8aaa76167c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 24 Dec 2025 17:55:30 +0200 Subject: [PATCH] fix(print): don't skip child notes if parent note has to be skipped --- .../collections/legacy/ListPrintView.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx b/apps/client/src/widgets/collections/legacy/ListPrintView.tsx index e6b43f6f0..8cde17687 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, onPro const notesWithContent: NotesWithContent[] = []; async function processNote(note: FNote, depth: number) { - if (!isNotePrintable(note)) return; + if (isNotePrintable(note)) { + const content = await content_renderer.getRenderedContent(note, { + trim: false, + noChildrenList: true + }); - const content = await content_renderer.getRenderedContent(note, { - trim: false, - noChildrenList: true - }); + const contentEl = content.$renderedContent[0]; - const contentEl = content.$renderedContent[0]; - - insertPageTitle(contentEl, note.title); - rewriteHeadings(contentEl, depth); - noteIdsSet.add(note.noteId); - notesWithContent.push({ note, contentEl }); + insertPageTitle(contentEl, note.title); + rewriteHeadings(contentEl, depth); + noteIdsSet.add(note.noteId); + notesWithContent.push({ note, contentEl }); + } if (onProgressChanged) { onProgressChanged(notesWithContent.length / noteIdsWithChildren.length);