fix: job count

This commit is contained in:
Jannat Patel
2025-06-13 20:33:51 +05:30
parent bf50e3f898
commit 6f01e7b8d8

View File

@@ -122,9 +122,6 @@ onMounted(() => {
const jobs = createResource({
url: 'lms.lms.api.get_job_opportunities',
cache: ['jobs'],
onSuccess(data) {
jobCount.value = data.length
},
})
const updateJobs = () => {
@@ -169,6 +166,10 @@ watch(country, (val) => {
updateJobs()
})
watch(jobs, () => {
jobCount.value = jobs.data?.length || 0
})
const jobTypes = computed(() => {
return [
'',