From cfbac5f2c4648e54fb64701dd1c63ab5ef81e39c Mon Sep 17 00:00:00 2001 From: KerollesFathy Date: Tue, 16 Dec 2025 21:05:04 +0000 Subject: [PATCH] fix: use `update:modelvalue` instead of using `watch` --- frontend/src/pages/CertifiedParticipants.vue | 8 ++------ lms/lms/api.py | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/CertifiedParticipants.vue b/frontend/src/pages/CertifiedParticipants.vue index 62bd2d35..f53d1554 100644 --- a/frontend/src/pages/CertifiedParticipants.vue +++ b/frontend/src/pages/CertifiedParticipants.vue @@ -33,7 +33,7 @@ v-model="currentCategory" :options="categories.data" :placeholder="__('Category')" - @change="updateParticipants()" + @update:modelValue="updateParticipants()" /> @@ -111,7 +111,7 @@ import { Select, usePageMeta, } from 'frappe-ui' -import { computed, inject, onMounted, ref, watch } from 'vue' +import { computed, inject, onMounted, ref } from 'vue' import { GraduationCap } from 'lucide-vue-next' import { sessionStore } from '../stores/session' import EmptyState from '@/components/EmptyState.vue' @@ -220,10 +220,6 @@ usePageMeta(() => { icon: brand.favicon, } }) - -watch(currentCategory, (val) => { - updateParticipants() -})