1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop: Fixes #5582: Currently opened note is not updated after sync (5582) (#5711)

This commit is contained in:
Kenichi Kobayashi 2021-11-12 00:31:20 +09:00 committed by GitHub
parent 72f336a5af
commit e4d5e9cefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);