Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15066 Rev 15067
Línea 94... Línea 94...
94
				})
94
				})
95
		}
95
		}
96
	}, [actionLink])
96
	}, [actionLink])
Línea 97... Línea 97...
97
 
97
 
-
 
98
	useEffect(() => {
98
	useEffect(() => {
99
		if (currentJobDescription) {
99
		axios.get(`/settings/jobs-description/edit/${currentJobDescription}`)
100
			axios.get(`/settings/jobs-description/edit/${currentJobDescription}`)
100
			.then(({ data }) => {
101
				.then(({ data }) => {
101
				if (!data.success) {
102
					if (!data.success) {
102
					return dispatch(addNotification({
103
						return dispatch(addNotification({
103
						style: 'danger',
104
							style: 'danger',
104
						msg: 'Ha ocurrido un error'
105
							msg: 'Ha ocurrido un error'
105
					}))
106
						}))
Línea 106... Línea 107...
106
				}
107
					}
107
 
108
 
108
				setJobDescriptionOptions([...data.data.jobs_description, { job_description_id: data.data.uuid, name: data.data.name }])
109
					setJobDescriptionOptions([...data.data.jobs_description, { job_description_id: data.data.uuid, name: data.data.name }])
109
				setCompetenciesSelected(data.data.competencies_selected)
110
					setCompetenciesSelected(data.data.competencies_selected)
-
 
111
					setCompetencyTypes(data.data.competency_types)
110
				setCompetencyTypes(data.data.competency_types)
112
				})
Línea 111... Línea 113...
111
			})
113
		}
112
	}, [currentJobDescription])
114
	}, [currentJobDescription])
113
 
115