mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
refresh promoted attributes when change detected
This commit is contained in:
@@ -267,4 +267,10 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
|
||||
|
||||
$attr.prop("attribute-id", result.attributeId);
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
if (loadResults.getAttributes().find(attr => attr.noteId === this.noteId)) {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user