diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts index 9a2c61d227..a1f477993b 100644 --- a/apps/client/src/widgets/note_tree.ts +++ b/apps/client/src/widgets/note_tree.ts @@ -803,6 +803,10 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { childBranches = childBranches.slice(0, MAX_SEARCH_RESULTS_IN_TREE); } + if (parentNote.hasLabel("subtreeHidden")) { + childBranches = []; + } + for (const branch of childBranches) { if (hideArchivedNotes) { const note = branch.getNoteFromCache();