aboutsummaryrefslogtreecommitdiff
path: root/src/features
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-29 18:28:55 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-29 18:28:55 -0600
commitdaee56ba5509a4576fa066adfcc0d1bc05f98802 (patch)
tree0c0fd7ebb94ca5c4ad82dbea16ba2b58e91900a2 /src/features
parent4285674ab37c74a24b265ace4d15d4848457d375 (diff)
downloadToDo-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.js1
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;