Skip to content

Build your personal knowledge base with Trilium Notes

chore(client/search): ensure nested note IDs don't work in search everywhere

Elian Doranee9c3f49da91
diff --git a/apps/client/src/widgets/collections/NoteList.tsx b/apps/client/src/widgets/collections/NoteList.tsx
index 017f180de7..c39b4e7e83 100644
--- a/apps/client/src/widgets/collections/NoteList.tsx
+++ b/apps/client/src/widgets/collections/NoteList.tsx
@@ -140,7 +140,7 @@ export function useNoteIds(note: FNote | null | undefined, viewType: ViewTypeOpt
}
async function getNoteIds(note: FNote) {
- if (viewType === "list" || viewType === "grid" || viewType === "table") {
+ if (viewType === "list" || viewType === "grid" || viewType === "table" || note.type === "search") {
return note.getChildNoteIds();
} else {
return await note.getSubtreeNoteIds(includeArchived);