diff --git a/ReactNativeClient/lib/reducer.js b/ReactNativeClient/lib/reducer.js index 909ff2acf8..d141ed99c2 100644 --- a/ReactNativeClient/lib/reducer.js +++ b/ReactNativeClient/lib/reducer.js @@ -467,14 +467,14 @@ function handleHistory(state, action) { backwardHistoryNotes = backwardHistoryNotes.map(note => { if (note.id === modNote.id) { - return Object.assign(note, { parent_id: modNote.parent_id, selectedFolderId: modNote.parent_id }); + return Object.assign({}, note, { parent_id: modNote.parent_id, selectedFolderId: modNote.parent_id }); } return note; }); forwardHistoryNotes = forwardHistoryNotes.map(note => { if (note.id === modNote.id) { - return Object.assign(note, { parent_id: modNote.parent_id, selectedFolderId: modNote.parent_id }); + return Object.assign({}, note, { parent_id: modNote.parent_id, selectedFolderId: modNote.parent_id }); } return note; });