feat(collections/list): filter archived notes

This commit is contained in:
Elian Doran
2025-11-13 10:21:45 +02:00
parent b13c0fe7a2
commit e51daad5da
2 changed files with 10 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ export function useNoteIds(note: FNote | null | undefined, viewType: ViewTypeOpt
async function getNoteIds(note: FNote) {
if (viewType === "list" || viewType === "grid" || viewType === "table" || note.type === "search") {
return note.getChildNoteIds();
return await note.getChildNoteIdsWithArchiveFiltering(includeArchived);
} else {
return await note.getSubtreeNoteIds(includeArchived);
}