diff --git a/src/public/app/widgets/attribute_widgets/attribute_editor.js b/src/public/app/widgets/attribute_widgets/attribute_editor.js index 8ded708f8..225ba1f38 100644 --- a/src/public/app/widgets/attribute_widgets/attribute_editor.js +++ b/src/public/app/widgets/attribute_widgets/attribute_editor.js @@ -228,15 +228,19 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget { } // triggered from keyboard shortcut - addNewLabelEvent({ntxId}) { + async addNewLabelEvent({ntxId}) { if (this.isNoteContext(ntxId)) { + await this.refresh(); + this.handleAddNewAttributeCommand('addNewLabel'); } } // triggered from keyboard shortcut - addNewRelationEvent({ntxId}) { + async addNewRelationEvent({ntxId}) { if (this.isNoteContext(ntxId)) { + await this.refresh(); + this.handleAddNewAttributeCommand('addNewRelation'); } }