Proyectos de Subversion LeadersLinked - SPA

Rev

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

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