Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case CHANGE_NOTE_TITLE: {
- const newNotes = state.notes;
- newNotes[action.payload.index].noteTitle = action.payload.newTitle;
- return {
- ...state,
- notes: newNotes,
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement