Skip to content

Commit

Permalink
fix: associate new note with default editor
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Dec 28, 2021
1 parent 06fae3a commit 54e5fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/views/editor/editor_view.ts
Expand Up @@ -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;

Expand Down

0 comments on commit 54e5fc9

Please sign in to comment.