mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix note tree flickering (note cache was not updated when expanded status changed)
This commit is contained in:
		| @@ -1175,7 +1175,7 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|     async setExpanded(branchId, isExpanded) { | ||||
|     setExpanded(branchId, isExpanded) { | ||||
|         utils.assertArguments(branchId); | ||||
|  | ||||
|         const branch = treeCache.getBranch(branchId, true); | ||||
| @@ -1193,7 +1193,7 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|  | ||||
|         branch.isExpanded = isExpanded; | ||||
|  | ||||
|         await server.put(`branches/${branchId}/expanded/${isExpanded ? 1 : 0}`); | ||||
|         server.put(`branches/${branchId}/expanded/${isExpanded ? 1 : 0}`); | ||||
|     } | ||||
|  | ||||
|     async reloadTreeFromCache() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user