diff --git a/frontend/src/pages/Jobs.vue b/frontend/src/pages/Jobs.vue index efa3e276..a5363fc7 100644 --- a/frontend/src/pages/Jobs.vue +++ b/frontend/src/pages/Jobs.vue @@ -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 [ '',