Skip to content

Commit

Permalink
fix delete board operation
Browse files Browse the repository at this point in the history
  • Loading branch information
001elijah committed Jun 29, 2023
1 parent 6b5a608 commit 211358f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redux/Boards/boardsSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const boardsSlice = createSlice({
const index = state.allboards.findIndex(({ _id }) => _id === boardId);
if (index !== -1) {
state.allboards.splice(index, 1);
state.currentboard = null;
}
})
// .addCase(getBoardById.fulfilled, (state, { payload }) => {
Expand Down

0 comments on commit 211358f

Please sign in to comment.