Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2387 Rev 2430
Línea 39... Línea 39...
39
      .get(url)
39
      .get(url)
40
      .then((response) => handleError(response))
40
      .then((response) => handleError(response))
41
      .then((data) => setData(data))
41
      .then((data) => setData(data))
42
      .catch((error) => {
42
      .catch((error) => {
43
        dispatch(addNotification({ style: 'danger', msg: error.message }))
43
        dispatch(addNotification({ style: 'danger', msg: error.message }))
44
        if (error.message.includes('sesión')) {
44
        if (error.message.includes('sesión')) dispatch(logout())
45
          dispatch(logout())
-
 
46
        }
-
 
47
      })
45
      })
48
      .finally(() => setIsLoading(false))
46
      .finally(() => setIsLoading(false))
49
  }
47
  }
Línea 50... Línea 48...
50
 
48