fix(note_list): no longer displayed in help or search

This commit is contained in:
Elian Doran 2025-11-15 22:05:32 +02:00
parent 35ca295d48
commit 948688a4ea
No known key found for this signature in database

View File

@ -257,7 +257,9 @@ export default class FNote {
} }
async getChildNoteIdsWithArchiveFiltering(includeArchived = false) { async getChildNoteIdsWithArchiveFiltering(includeArchived = false) {
if (!includeArchived) { const isHiddenNote = this.noteId.startsWith("_");
const isSearchNote = this.type === "search";
if (!includeArchived && !isHiddenNote && !isSearchNote) {
const unorderedIds = new Set(await search.searchForNoteIds(`note.parents.noteId="${this.noteId}" #!archived`)); const unorderedIds = new Set(await search.searchForNoteIds(`note.parents.noteId="${this.noteId}" #!archived`));
const results: string[] = []; const results: string[] = [];
for (const id of this.children) { for (const id of this.children) {