mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
refresh promoted attributes when change detected
This commit is contained in:
parent
e70c862e72
commit
11b73b79ed
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue