mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-11 05:45:26 -06:00
fix(client/search): freeze in presentation collection
This commit is contained in:
parent
f36535d061
commit
6d09c7116f
@ -26,7 +26,7 @@ export async function buildPresentationModel(note: FNote): Promise<PresentationM
|
|||||||
const slideNotes = await note.getChildNotes();
|
const slideNotes = await note.getChildNotes();
|
||||||
const slides: PresentationSlideModel[] = await Promise.all(slideNotes.map(async slideNote => ({
|
const slides: PresentationSlideModel[] = await Promise.all(slideNotes.map(async slideNote => ({
|
||||||
...(await buildSlideModel(slideNote)),
|
...(await buildSlideModel(slideNote)),
|
||||||
verticalSlides: await buildVerticalSlides(slideNote)
|
verticalSlides: note.type !== "search" ? await buildVerticalSlides(slideNote) : undefined
|
||||||
})));
|
})));
|
||||||
|
|
||||||
postProcessSlides(slides);
|
postProcessSlides(slides);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user