|
|
@@ -35,8 +35,6 @@ const NewPlazaSchema = Yup.object().shape({
|
|
|
|
|
|
function Edit(props) {
|
|
|
|
|
|
- console.log("EDIT : ", props)
|
|
|
-
|
|
|
const now = useMemo(() => new Date(), [])
|
|
|
const auth = useSelector((state) => state.token)
|
|
|
const queryClient = useQueryClient()
|
|
|
@@ -82,7 +80,7 @@ function Edit(props) {
|
|
|
|
|
|
const puestoMutation = useMutation(updatePuesto)
|
|
|
|
|
|
- const close = () => toggle("EDIT");
|
|
|
+ const close = () => toggle("EDIT", {id : null});
|
|
|
|
|
|
const { data } = useQuery('categories', getCategories);
|
|
|
const { data: testsCatalog } = useQuery('tests', getTest);
|
|
|
@@ -123,8 +121,8 @@ function Edit(props) {
|
|
|
const { errors, touched, handleSubmit, getFieldProps, setValues, values } = formik;
|
|
|
|
|
|
useEffect(() => {
|
|
|
- console.log('rendreindg edit')
|
|
|
- },[])
|
|
|
+ console.info('use effect edit', props)
|
|
|
+ },[props])
|
|
|
|
|
|
// useEffect(() => {
|
|
|
// if (puesto) {
|