fix: associate new note with default editor

This commit is contained in:
Mo
2021-12-27 18:23:53 -06:00
parent 06fae3acda
commit 54e5fc9184

View File

@@ -425,6 +425,7 @@ export class EditorViewCtrl extends PureViewCtrl<unknown, EditorState> {
/** 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;