add getemployeebyid call N costcenter dropdown

This commit is contained in:
jfrye122
2023-05-09 12:27:06 -04:00
parent 9fc2d4c67c
commit e57a3605b8
8 changed files with 103 additions and 42 deletions

View File

@@ -46,8 +46,7 @@ const employeeReducer = (state = INITIAL_STATE, action) => {
case EmployeeActionTypes.EMPLOYEE_GET_RATES_SUCCESS:
return {
...state,
//currentEmployee: { authorized: true, technician:action.payload },
currentEmployee: { rates:action.payload },//TODO check if ...state needed
currentEmployee: { ...state.currentEmployee, technician:action.payload },
gettingRates: false,
error: null,
};