mirror of
https://github.com/zadam/trilium.git
synced 2025-12-30 03:04:29 +01:00
fix(print): don't skip child notes if parent note has to be skipped
This commit is contained in:
parent
66cdee82a4
commit
2afc8d181d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user