refresh promoted attributes when change detected

This commit is contained in:
zadam 2020-06-07 23:57:10 +02:00
parent e70c862e72
commit 11b73b79ed

View file

@ -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();
}
}
}