diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue index 69dacf8c8..afe614290 100644 --- a/src/modules/04_registry/components/Salary.vue +++ b/src/modules/04_registry/components/Salary.vue @@ -1505,7 +1505,6 @@ watch(visibleColumns, async (count: String[], prevCount: String[]) => { onMounted(async () => { // await fetchPosition(); await getPosition(); - await fetchType(); // await nodeTree(); await fetchData(); }); @@ -2398,11 +2397,17 @@ async function fetchType() { hideLoader(); }); } -// watch(()=>modal.value,()=>{ -// if(modal.value == true){ -// getPosition() -// } -// }) +watch( + () => modal.value, + () => { + if (modal.value == true) { + positionTypeOptions.value = []; + positionLevelOptions.value = []; + positionLevelOptionsFilter.value = []; + fetchType(); + } + } +);