mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	correct reloading of note subtree when relevant labels change
This commit is contained in:
		| @@ -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; | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -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); | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user