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