mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
fix(client/search): note IDs being calculated recursively in table
This commit is contained in:
parent
929eee1350
commit
c7224bc0d1
@ -140,7 +140,7 @@ export function useNoteIds(note: FNote | null | undefined, viewType: ViewTypeOpt
|
||||
}
|
||||
|
||||
async function getNoteIds(note: FNote) {
|
||||
if (viewType === "list" || viewType === "grid") {
|
||||
if (viewType === "list" || viewType === "grid" || viewType === "table") {
|
||||
return note.getChildNoteIds();
|
||||
} else {
|
||||
return await note.getSubtreeNoteIds(includeArchived);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user