fix: properly remove Quick Tags extension before notifying SNJS

This commit is contained in:
Baptiste Grob
2020-10-21 12:41:08 +02:00
parent 29c98eb2d7
commit f446d363a9

View File

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