diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-29 18:28:55 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-29 18:28:55 -0600 |
commit | daee56ba5509a4576fa066adfcc0d1bc05f98802 (patch) | |
tree | 0c0fd7ebb94ca5c4ad82dbea16ba2b58e91900a2 /src/features/todo/reducer.js | |
parent | 4285674ab37c74a24b265ace4d15d4848457d375 (diff) | |
download | ToDo-App-FE-daee56ba5509a4576fa066adfcc0d1bc05f98802.tar.gz ToDo-App-FE-daee56ba5509a4576fa066adfcc0d1bc05f98802.zip |
Adding new to dos is now synchronized with database.
Changed the `refreshToDos` to also refresh the last index used.
Diffstat (limited to '')
-rw-r--r-- | src/features/todo/reducer.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/features/todo/reducer.js b/src/features/todo/reducer.js index 8a2e9b8..edd2b73 100644 --- a/src/features/todo/reducer.js +++ b/src/features/todo/reducer.js @@ -53,7 +53,6 @@ export const todo_slice = createSlice({ creation_date: action.payload.creation_date, }, ]; - state.last_id++; } else { state.todos[selected_todo].text = action.payload.text; state.todos[selected_todo].due_date = action.payload.due_date; |