Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
correct reloading of note subtree when relevant labels change
zadam7dd19c0366e6
diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.jsindex 45b69d8fdb..a35e1399da 100644--- a/src/public/app/entities/note_short.js+++ b/src/public/app/entities/note_short.js@@ -508,13 +508,13 @@ class NoteShort {visitedNoteIds.add(this.noteId);for (const templateNote of this.getTemplateNotes()) {- if (templateNote.hasAncestor(ancestorNote)) {+ if (templateNote.hasAncestor(ancestorNote, visitedNoteIds)) {return true;}}for (const parentNote of this.getParentNotes()) {- if (parentNote.hasAncestor(ancestorNote)) {+ if (parentNote.hasAncestor(ancestorNote, visitedNoteIds)) {return true;}}diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex 0f534487f0..daeb069039 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -1030,7 +1030,7 @@ export default class NoteTreeWidget extends TabAwareWidget {const noteIdsToReload = new Set();for (const attr of loadResults.getAttributes()) {- if (attr.type === 'label' && ['iconClass', 'cssClass'].includes(attr.name)) {+ if (attr.type === 'label' && ['iconClass', 'cssClass', 'workspace', 'workspaceIconClass', 'archived'].includes(attr.name)) {if (attr.isInheritable) {noteIdsToReload.add(attr.noteId);}