correct reloading of note subtree when relevant labels change

This commit is contained in:
zadam 2021-02-09 20:26:10 +01:00
parent 0040334e89
commit 7dd19c0366
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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);
}