Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 340 Rev 341
Línea 11... Línea 11...
11
    /**
11
    /**
12
     * Send form data
12
     * Send form data
13
     */
13
     */
14
    const handleSubmit = async () => {
14
    const handleSubmit = async () => {
15
        if (validateForm()) {
15
        if (validateForm()) {
16
            axios.post(action, test).then((response) => {
16
            await axios.post(action, test).then((response) => {
17
                if (response.data.success) {
17
                if (response.data.success) {
18
                    console.info('Formulario almacenado');
18
                    console.info('Formulario almacenado');
19
                    setTest(null);
19
                    setTest(null);
20
                }
20
                }
21
            });
21
            });