fix saving & refreshing attributes across compoments

This commit is contained in:
zadam
2020-08-12 00:02:19 +02:00
parent 935e5de493
commit ae909d1079
7 changed files with 28 additions and 19 deletions

View File

@@ -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];