diff --git a/src/public/app/widgets/attribute_editor.js b/src/public/app/widgets/attribute_editor.js index 9d40def7f..a2dbe5c53 100644 --- a/src/public/app/widgets/attribute_editor.js +++ b/src/public/app/widgets/attribute_editor.js @@ -499,8 +499,8 @@ export default class AttributeEditorWidget extends TabAwareWidget { return treeService.getSomeNotePath(note); } - updateAttributeList(attributes) { - this.renderOwnedAttributes(attributes, false); + async updateAttributeList(attributes) { + await this.renderOwnedAttributes(attributes, false); } entitiesReloadedEvent({loadResults}) { diff --git a/src/public/app/widgets/attribute_list.js b/src/public/app/widgets/attribute_list.js index b553873e7..aeaa49ec4 100644 --- a/src/public/app/widgets/attribute_list.js +++ b/src/public/app/widgets/attribute_list.js @@ -234,8 +234,8 @@ export default class AttributeListWidget extends TabAwareWidget { await this.attributeEditorWidget.refresh(); } - updateAttributeListCommand({attributes}) { - this.attributeEditorWidget.updateAttributeList(attributes); + async updateAttributeListCommand({attributes}) { + await this.attributeEditorWidget.updateAttributeList(attributes); } /**