diff --git a/app/assets/javascripts/ui_models/editor.ts b/app/assets/javascripts/ui_models/editor.ts index 56b68685c..ae3f2b690 100644 --- a/app/assets/javascripts/ui_models/editor.ts +++ b/app/assets/javascripts/ui_models/editor.ts @@ -68,8 +68,7 @@ export class Editor { references: [] } ); - this.isTemplateNote = true; - this.setNote(note as SNNote); + this.setNote(note as SNNote, true); } /** @@ -97,8 +96,9 @@ export class Editor { /** * Sets the editor contents by setting its note. */ - public setNote(note: SNNote) { + public setNote(note: SNNote, isTemplate = false) { this.note = note; + this.isTemplateNote = isTemplate; if (this._onNoteChange) { this._onNoteChange(); }