Skip to content

Build your personal knowledge base with Trilium Notes

fix(note_tree): not reacting to changes in subtreeHidden

Elian Doran5cabc6379d32
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index f1ca96569a..d541e6deb9 100644
--- a/apps/client/src/widgets/note_tree.ts
+++ b/apps/client/src/widgets/note_tree.ts
@@ -1271,7 +1271,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
} else {
refreshCtx.noteIdsToUpdate.add(attrRow.noteId);
}
- } else if (attrRow.type === "label" && attrRow.name === "archived" && attrRow.noteId) {
+ } else if (attrRow.type === "label" && (attrRow.name === "archived" || attrRow.name === "subtreeHidden") && attrRow.noteId) {
const note = froca.getNoteFromCache(attrRow.noteId);
if (note) {