From f446d363a94a1459a128b239272cbf85d2237a9f Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Wed, 21 Oct 2020 12:41:08 +0200 Subject: [PATCH] fix: properly remove Quick Tags extension before notifying SNJS --- app/assets/javascripts/views/editor/editor_view.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);