From 6f01e7b8d8fd341c5d6f500552cb04e9b5a8d16b Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 13 Jun 2025 20:33:51 +0530 Subject: [PATCH] fix: job count --- frontend/src/pages/Jobs.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 [ '',