Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3371 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3371 Rev 3374
Línea 13... Línea 13...
13
  const { id } = useParams()
13
  const { id } = useParams()
14
  const navigate = useNavigate()
14
  const navigate = useNavigate()
15
  const dispatch = useDispatch()
15
  const dispatch = useDispatch()
Línea 16... Línea 16...
16
 
16
 
17
  const { updatePurpose, getPurposeById } = usePurposes()
17
  const { updatePurpose, getPurposeById } = usePurposes()
Línea 18... Línea 18...
18
  const currentPurpose = getPurposeById(+id)
18
  const currentPurpose = getPurposeById(id)
19
 
19
 
20
  const onSubmit = async (purpose) => {
20
  const onSubmit = async (purpose) => {
21
    try {
21
    try {