Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2377 Rev 2387
Línea 41... Línea 41...
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')) {
45
          dispatch(logout())
45
          dispatch(logout())
46
          window.location.reload()
-
 
47
        }
46
        }
48
      })
47
      })
49
      .finally(() => setIsLoading(false))
48
      .finally(() => setIsLoading(false))
50
  }
49
  }