diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue index 30b2a3d..cbe1ad4 100644 --- a/src/modules/08_KPI/views/form.vue +++ b/src/modules/08_KPI/views/form.vue @@ -67,10 +67,11 @@ async function fetchEvaluation() { .get(config.API.kpiEvaluation + `/${id.value}`) .then(async (res) => { const data = await res.data.result; - store.dataEvaluation = res.data.result; - formProfile.status = await store.convertStatus(data.evaluationStatus); - formProfile.result = await store.convertResults(data.evaluationResults); + store.dataEvaluation = await res.data.result; + formProfile.status = store.convertStatus(data.evaluationStatus); + formProfile.result = store.convertResults(data.evaluationResults); store.checkCompetencyDefaultCompetencyLevel(); + await store.checkStep(); }) .catch((e) => { messageError($q, e); @@ -88,8 +89,6 @@ async function getProfile() { if (data.avatarName) { await fetchProfile(data.profileId, data.avatarName); } - - await store.checkStep(); }) .catch((e) => { messageError($q, e); @@ -464,7 +463,7 @@ async function fetchProfileEvaluator(id: string) { onMounted(async () => { showLoader(); - store.isUpdate = await false; + store.isUpdate = false; await getAll(); });