force refresh before activating the attribute detail dialog, fixes #4077

This commit is contained in:
zadam 2023-07-17 22:41:37 +02:00
parent 18801fb3e1
commit 23278f54cb

View File

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