Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2375 Rev 2377
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')) dispatch(logout())
44
        if (error.message.includes('sesión')) {
-
 
45
          dispatch(logout())
-
 
46
          window.location.reload()
-
 
47
        }
45
      })
48
      })
46
      .finally(() => setIsLoading(false))
49
      .finally(() => setIsLoading(false))
47
  }
50
  }
Línea 48... Línea 51...
48
 
51