From 98f33551441c8155b08e7360b9ef64e737f38a84 Mon Sep 17 00:00:00 2001 From: weaponsforge Date: Sat, 27 Aug 2022 02:49:28 +0800 Subject: [PATCH] fix: Update the global Todo state with updated data, #45 --- client/store/todo/todoSlice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/store/todo/todoSlice.js b/client/store/todo/todoSlice.js index 9410198..2c9388b 100644 --- a/client/store/todo/todoSlice.js +++ b/client/store/todo/todoSlice.js @@ -143,6 +143,7 @@ const todoSlice = createSlice({ state.loading = 'idle' state.currentRequestId = undefined state.todo = action.payload + todosAdapter.setOne(state, action.payload) } })