Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 10860 Rev 11051
Línea 44... Línea 44...
44
 
44
 
45
		axios.get(url, { params: { ...params } })
45
		axios.get(url, { params: { ...params } })
46
			.then(({ data }) => {
46
			.then(({ data }) => {
47
				if (!data.success) {
47
				if (!data.success) {
48
					dispatch(addNotification({
48
					dispatch(addNotification({
49
						style: 'error',
49
						style: 'danger',
50
						msg: 'Ha ocurrido un error'
50
						msg: 'Ha ocurrido un error'
51
					}))
51
					}))
Línea 52... Línea 52...
52
				}
52
				}
53
 
53
 
54
				setData(data.data)
54
				setData(data.data)
55
				setPages({ ...pages, last: Math.ceil(data.data.total / dataLength) })
55
				setPages({ ...pages, last: Math.ceil(data.data.total / dataLength) })
56
			})
56
			})
57
			.catch(() => dispatch(addNotification({
57
			.catch(() => dispatch(addNotification({
58
				style: 'error',
58
				style: 'danger',
59
				msg: 'Ha ocurrido un error'
59
				msg: 'Ha ocurrido un error'
Línea 60... Línea 60...
60
			})))
60
			})))