Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4822 Rev 4892
Línea 31... Línea 31...
31
        axios.post(addUrl, currentFormData)
31
        axios.post(addUrl, currentFormData)
32
            .then(({ data: response }) => {
32
            .then(({ data: response }) => {
33
                const { data: newComment, success, total_comments } = response;
33
                const { data: newComment, success, total_comments } = response;
Línea 34... Línea 34...
34
 
34
 
35
                if (!success) {
35
                if (!success) {
36
                    return addNotification({ style: "danger", msg: data })
36
                    return addNotification({ style: "danger", msg: newComment })
Línea 37... Línea 37...
37
                }
37
                }
38
 
38
 
39
                updateTotalComments(total_comments)
39
                updateTotalComments(total_comments)