more
This commit is contained in:
@@ -3,7 +3,6 @@ export const useGroupReducer = (state, action) => {
|
||||
case "CREATE_GROUP":
|
||||
return { ...state, group: action.payload };
|
||||
case "UPDATE_GROUP_NAME":
|
||||
console.log("state, action.payload", state, action.payload);
|
||||
return [...state, { name: action.payload }];
|
||||
case "DELETE_GROUP":
|
||||
return { ...state, group: null };
|
||||
@@ -17,7 +16,6 @@ export const useDataReducer = (state, action) => {
|
||||
case "CREATE_CASES":
|
||||
return { ...state, cases: action.payload };
|
||||
case "UPDATE_GROUP_NAME":
|
||||
console.log("state, action.payload", state, action.payload);
|
||||
return [...state, { cases: action.payload }];
|
||||
default:
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user