Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
fix: update note content when changing editors
Browse files Browse the repository at this point in the history
  • Loading branch information
radko93 committed Nov 24, 2020
1 parent c2f2d3c commit 4655372
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/screens/Compose/Compose.tsx
Expand Up @@ -314,7 +314,10 @@ export const Compose = React.memo(
setTitle(newNote.title);
setNoteText(newNote.text);
}
if (newNote.locked !== note?.locked) {
if (
note?.prefersPlainEditor !== newNote.prefersPlainEditor ||
newNote.locked !== note?.locked
) {
if (note) {
setNote(newNote);
}
Expand Down

0 comments on commit 4655372

Please sign in to comment.