mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 03:59:05 +01:00
chore(client/search): ensure nested note IDs don't work in search everywhere
This commit is contained in:
parent
3743fff21c
commit
ee9c3f49da
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user