diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 974e6cfdb..d70e3a706 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -1076,10 +1076,10 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> { }); } - reloadNoteTagsComponent() { + async reloadNoteTagsComponent() { const [tagsComponent] = this.application.componentManager!.componentsForArea(ComponentArea.NoteTags); - this.setState({ + await this.setState({ tagsComponent: tagsComponent?.active ? tagsComponent : undefined }); this.application.componentManager!.contextItemDidChangeInArea(ComponentArea.NoteTags);