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