Skip to content

Commit

Permalink
Desktop: Fixes #5582: Currently opened note is not updated after sync…
Browse files Browse the repository at this point in the history
… (5582) (#5711)
  • Loading branch information
ken1kob authored Nov 11, 2021
1 parent 72f336a commit e4d5e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-desktop/gui/NoteEditor/NoteEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4d5e9c

Please sign in to comment.