Skip to content

Commit 948688a

Browse files
committed
fix(note_list): no longer displayed in help or search
1 parent 35ca295 commit 948688a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/client/src/entities/fnote.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ export default class FNote {
257257
}
258258

259259
async getChildNoteIdsWithArchiveFiltering(includeArchived = false) {
260-
if (!includeArchived) {
260+
const isHiddenNote = this.noteId.startsWith("_");
261+
const isSearchNote = this.type === "search";
262+
if (!includeArchived && !isHiddenNote && !isSearchNote) {
261263
const unorderedIds = new Set(await search.searchForNoteIds(`note.parents.noteId="${this.noteId}" #!archived`));
262264
const results: string[] = [];
263265
for (const id of this.children) {

0 commit comments

Comments
 (0)