From 65108fbb2ea89d5f8c335deb0612e8d161b5410a Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Fri, 11 Sep 2020 10:16:11 +0200 Subject: [PATCH] fix: prevent exception when inserting note --- app/assets/javascripts/ui_models/editor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/ui_models/editor.ts b/app/assets/javascripts/ui_models/editor.ts index fe279314d..32687870e 100644 --- a/app/assets/javascripts/ui_models/editor.ts +++ b/app/assets/javascripts/ui_models/editor.ts @@ -56,7 +56,8 @@ export class Editor { } } - async insertTemplatedNote() { + insertTemplatedNote() { + this.isTemplateNote = false; return this.application.insertItem(this.note); }