mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	force refresh before activating the attribute detail dialog, fixes #4077
This commit is contained in:
		| @@ -228,15 +228,19 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     // triggered from keyboard shortcut |     // triggered from keyboard shortcut | ||||||
|     addNewLabelEvent({ntxId}) { |     async addNewLabelEvent({ntxId}) { | ||||||
|         if (this.isNoteContext(ntxId)) { |         if (this.isNoteContext(ntxId)) { | ||||||
|  |             await this.refresh(); | ||||||
|  |  | ||||||
|             this.handleAddNewAttributeCommand('addNewLabel'); |             this.handleAddNewAttributeCommand('addNewLabel'); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // triggered from keyboard shortcut |     // triggered from keyboard shortcut | ||||||
|     addNewRelationEvent({ntxId}) { |     async addNewRelationEvent({ntxId}) { | ||||||
|         if (this.isNoteContext(ntxId)) { |         if (this.isNoteContext(ntxId)) { | ||||||
|  |             await this.refresh(); | ||||||
|  |  | ||||||
|             this.handleAddNewAttributeCommand('addNewRelation'); |             this.handleAddNewAttributeCommand('addNewRelation'); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user