From 54e5fc918478eb53c04a7b0b542bc07a175cbfa1 Mon Sep 17 00:00:00 2001 From: Mo Date: Mon, 27 Dec 2021 18:23:53 -0600 Subject: [PATCH] fix: associate new note with default editor --- app/assets/javascripts/views/editor/editor_view.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 6f96c0df3..dd7990779 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -425,6 +425,7 @@ export class EditorViewCtrl extends PureViewCtrl { /** Editors cannot interact with template notes so the note must be inserted */ if (newEditor && this.editor.isTemplateNote) { await this.editor.insertTemplatedNote(); + this.associateComponentWithCurrentNote(newEditor); } const currentComponentViewer = this.state.editorComponentViewer;