always preserve old text when editing a note
Created by: dakkar
before this change:
- create a note, with text
-
note
has a row with the text -
note_edit
doesn't have any matching row
-
- edit the note, removing all the text
- the row in
note
has the new, empty, text -
note_edit
has a matching row, but itsoldText
is NULL
- the row in
so the original text is lost
after this change, the row in note_edit
always keeps the previous text
Checklist
-
Read the contribution guide -
Test working in a local environment -
(If needed) Add story of storybook -
(If needed) Update CHANGELOG.md -
(If possible) Add tests