From 91b53d34bf8d0728eb90a564765a205b3172c1be Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Mon, 22 Jun 2020 15:23:58 +0200 Subject: [PATCH] fix: correctly set note values when they change --- app/assets/javascripts/views/editor/editor_view.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 8d8f21324..6d118ff53 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -191,6 +191,12 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope { this.editorValues.text = note.text; this.reloadTagsString(); } + if (!this.editorValues.title) { + this.editorValues.title = note.title; + } + if (!this.editorValues.text) { + this.editorValues.text = note.text; + } if (note.lastSyncBegan && note.lastSyncEnd) { if (note.lastSyncBegan!.getTime() > note.lastSyncEnd!.getTime()) { this.showSavingStatus()