1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Optimised saving notes

This commit is contained in:
Laurent Cozic
2017-07-16 00:09:04 +01:00
parent 4152fcec5e
commit 12c163ef73
3 changed files with 6 additions and 16 deletions

View File

@ -158,7 +158,7 @@ const reducer = (state = defaultState, action) => {
for (let i = 0; i < newNotes.length; i++) {
let n = newNotes[i];
if (n.id == action.note.id) {
newNotes[i] = action.note;
newNotes[i] = Object.assign(newNotes[i], action.note);
found = true;
break;
}