Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11050 Rev 11051
Línea 37... Línea 37...
37
 
37
 
38
		axios.get(`${url}/${currentVacancy}`, { params: { ...params } })
38
		axios.get(`${url}/${currentVacancy}`, { params: { ...params } })
39
			.then(({ data }) => {
39
			.then(({ data }) => {
40
				if (!data.success) {
40
				if (!data.success) {
41
					dispatch(addNotification({
41
					dispatch(addNotification({
42
						style: 'error',
42
						style: 'danger',
43
						msg: 'Ha ocurrido un error'
43
						msg: 'Ha ocurrido un error'
44
					}))
44
					}))
Línea 45... Línea 45...
45
				}
45
				}
46
 
46
 
47
				setData(data.data)
47
				setData(data.data)
48
				setPages({ ...pages, last: Math.ceil(data.data.total / dataLength) })
48
				setPages({ ...pages, last: Math.ceil(data.data.total / dataLength) })
49
			})
49
			})
50
			.catch(() => dispatch(addNotification({
50
			.catch(() => dispatch(addNotification({
51
				style: 'error',
51
				style: 'danger',
52
				msg: 'Ha ocurrido un error'
52
				msg: 'Ha ocurrido un error'
Línea 53... Línea 53...
53
			})))
53
			})))