Skip to content

Build your personal knowledge base with Trilium Notes

refresh promoted attributes when change detected

zadam11b73b79ed01
diff --git a/src/public/app/widgets/promoted_attributes.js b/src/public/app/widgets/promoted_attributes.js
index 58e025d070..34a12b2224 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();
+ }
+ }
}