From daee56ba5509a4576fa066adfcc0d1bc05f98802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Mon, 29 May 2023 18:28:55 -0600 Subject: Adding new to dos is now synchronized with database. Changed the `refreshToDos` to also refresh the last index used. --- src/features/todo/reducer.js | 1 - 1 file changed, 1 deletion(-) (limited to 'src/features/todo/reducer.js') 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; -- cgit v1.2.3