|
@@ -63,8 +63,8 @@ function Edit(props) {
|
63
|
63
|
queryClient.invalidateQueries('puestos')
|
64
|
64
|
},
|
65
|
65
|
onError:() => {
|
66
|
|
- close();
|
67
|
|
- setOpen(false)
|
|
66
|
+ //close();
|
|
67
|
+ //setOpen(false)
|
68
|
68
|
toast.error("Lo sentimos ocurrió error inténtalo más tarde")
|
69
|
69
|
}
|
70
|
70
|
})
|
|
@@ -124,7 +124,7 @@ function Edit(props) {
|
124
|
124
|
let { areadeptoplz_id, fecha, tests } = response.data;
|
125
|
125
|
let temp_test = tests.map( t => ({ id : t.id} ))
|
126
|
126
|
setChecklist(temp_test.map( t => t.id))
|
127
|
|
- reset({...response.data, areadepto : areadeptoplz_id, fecha : new Date(fecha) , tests : temp_test })
|
|
127
|
+ reset({...response.data, aredepto : areadeptoplz_id, fecha : new Date(fecha) , tests : temp_test })
|
128
|
128
|
})
|
129
|
129
|
.catch(console.log)
|
130
|
130
|
},[visible, auth,reset])
|
|
@@ -199,8 +199,8 @@ function Edit(props) {
|
199
|
199
|
<FormControl fullWidth>
|
200
|
200
|
<InputLabel>Departamento</InputLabel>
|
201
|
201
|
<Controller
|
202
|
|
- helperText={errors.areadepto?.message}
|
203
|
|
- error={Boolean(errors?.areadepto)}
|
|
202
|
+ helperText={errors.aredepto?.message}
|
|
203
|
+ error={Boolean(errors?.aredepto)}
|
204
|
204
|
name="aredepto"
|
205
|
205
|
control={control}
|
206
|
206
|
render={ ({field}) =>
|