|
@@ -35,8 +35,6 @@ const NewPlazaSchema = Yup.object().shape({
|
35
|
35
|
|
36
|
36
|
function Edit(props) {
|
37
|
37
|
|
38
|
|
- console.log("EDIT : ", props)
|
39
|
|
-
|
40
|
38
|
const now = useMemo(() => new Date(), [])
|
41
|
39
|
const auth = useSelector((state) => state.token)
|
42
|
40
|
const queryClient = useQueryClient()
|
|
@@ -82,7 +80,7 @@ function Edit(props) {
|
82
|
80
|
|
83
|
81
|
const puestoMutation = useMutation(updatePuesto)
|
84
|
82
|
|
85
|
|
- const close = () => toggle("EDIT");
|
|
83
|
+ const close = () => toggle("EDIT", {id : null});
|
86
|
84
|
|
87
|
85
|
const { data } = useQuery('categories', getCategories);
|
88
|
86
|
const { data: testsCatalog } = useQuery('tests', getTest);
|
|
@@ -123,8 +121,8 @@ function Edit(props) {
|
123
|
121
|
const { errors, touched, handleSubmit, getFieldProps, setValues, values } = formik;
|
124
|
122
|
|
125
|
123
|
useEffect(() => {
|
126
|
|
- console.log('rendreindg edit')
|
127
|
|
- },[])
|
|
124
|
+ console.info('use effect edit', props)
|
|
125
|
+ },[props])
|
128
|
126
|
|
129
|
127
|
// useEffect(() => {
|
130
|
128
|
// if (puesto) {
|