From 11b73b79ed0126dfe16e0e372c17a61c02120d16 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 7 Jun 2020 23:57:10 +0200 Subject: [PATCH] refresh promoted attributes when change detected --- src/public/app/widgets/promoted_attributes.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/public/app/widgets/promoted_attributes.js b/src/public/app/widgets/promoted_attributes.js index 58e025d07..34a12b222 100644 --- a/src/public/app/widgets/promoted_attributes.js +++ b/src/public/app/widgets/promoted_attributes.js @@ -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(); + } + } }