From cab9953e2263dfa2fa61b9586dc1cae63b6c9403 Mon Sep 17 00:00:00 2001 From: Kenichi Kobayashi Date: Thu, 11 Nov 2021 23:36:02 +0900 Subject: [PATCH] Fix Desktop: Synced note is not updated in display and lost with no conflict (5582) --- packages/app-desktop/gui/NoteEditor/NoteEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-desktop/gui/NoteEditor/NoteEditor.tsx b/packages/app-desktop/gui/NoteEditor/NoteEditor.tsx index 645d0ae8339..cea6e30e641 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteEditor.tsx +++ b/packages/app-desktop/gui/NoteEditor/NoteEditor.tsx @@ -110,7 +110,7 @@ function NoteEditor(props: NoteEditorProps) { const savedNote: any = await Note.save(note); setFormNote((prev: FormNote) => { - return { ...prev, user_updated_time: savedNote.user_updated_time }; + return { ...prev, user_updated_time: savedNote.user_updated_time, hasChanged: false }; }); void ExternalEditWatcher.instance().updateNoteFile(savedNote);