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

This commit is contained in:
Elian Doran 2025-10-20 17:33:48 +03:00
parent 3743fff21c
commit ee9c3f49da
No known key found for this signature in database

View File

@ -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);