mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix note tree flickering (note cache was not updated when expanded status changed)
This commit is contained in:
@@ -80,8 +80,9 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
|
||||
delete noteCache.branches[branchId];
|
||||
}
|
||||
else if (branchId in noteCache.branches) {
|
||||
// only relevant thing which can change in a branch is prefix
|
||||
// only relevant properties which can change in a branch are prefix and isExpanded
|
||||
noteCache.branches[branchId].prefix = entity.prefix;
|
||||
noteCache.branches[branchId].isExpanded = entity.isExpanded;
|
||||
|
||||
if (childNote) {
|
||||
childNote.flatTextCache = null;
|
||||
|
||||
Reference in New Issue
Block a user