Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6309 Rev 6312
Línea 22... Línea 22...
22
            .then(({ data }) => {
22
            .then(({ data }) => {
23
                if (!data.success) {
23
                if (!data.success) {
24
                    return setError(data.data)
24
                    return setError(data.data)
25
                }
25
                }
26
                action(data.data)
26
                action(data.data)
-
 
27
            })
-
 
28
            .then(()=>{
27
                setError(null)
29
                setError(null)
28
                closeModal()
30
                closeModal()
29
            })
31
            })
30
            .catch((err) => console.log(err))
32
            .catch((err) => console.log(err))
31
    }
33
    }
Línea 32... Línea 34...
32
 
34
 
33
    useEffect(() => {
35
    useEffect(() => {
-
 
36
        getData(websiteUrl)
34
        getData(websiteUrl)
37
            .then(resp => {
-
 
38
                setValue("website", resp)
-
 
39
                console.log(resp)
35
            .then(resp => setValue("website", resp))
40
            })
36
            .catch(err => console.log(err))
41
            .catch(err => console.log(err))
Línea 37... Línea 42...
37
    }, []);
42
    }, []);
38
 
43