Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5355 Rev 5356
Línea 28... Línea 28...
28
    axios.get(`/chat/users?search=${searchValue.toLowerCase()}`)
28
    axios.get(`/chat/users?search=${searchValue.toLowerCase()}`)
29
      .then(({ data: response }) => {
29
      .then(({ data: response }) => {
30
        if (!response.success) {
30
        if (!response.success) {
31
          return dispatch(addNotification({ style: 'danger', msg: 'Ha ocurrido un error' }))
31
          return dispatch(addNotification({ style: 'danger', msg: 'Ha ocurrido un error' }))
32
        }
32
        }
33
        console.log(response.data)
33
        setContacts(response.data)
34
      })
34
      })
35
      .finally(() => setLoading(false))
35
      .finally(() => setLoading(false))
36
  }
36
  }
Línea 37... Línea 37...
37
 
37