mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
fix saving & refreshing attributes across compoments
This commit is contained in:
@@ -121,7 +121,10 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
|
||||
}
|
||||
|
||||
delete noteCache.attributes[attributeId];
|
||||
delete noteCache.attributeIndex[`${attr.type}-${attr.name}`];
|
||||
|
||||
if (attr) {
|
||||
delete noteCache.attributeIndex[`${attr.type}-${attr.name}`];
|
||||
}
|
||||
}
|
||||
else if (attributeId in noteCache.attributes) {
|
||||
const attr = noteCache.attributes[attributeId];
|
||||
|
||||
Reference in New Issue
Block a user