From 69a32e798cd3c3b6b72f82c4e198605b6639ddc7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Tue, 12 Dec 2023 16:42:09 +0100 Subject: [PATCH] Add query to fetch categories with type --- src/pages/talents.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/talents.vue b/src/pages/talents.vue index 57f7b98..9f04583 100644 --- a/src/pages/talents.vue +++ b/src/pages/talents.vue @@ -29,7 +29,7 @@ function isCategory(category: string) { const { data: getCategories, -} = await useFetch>('/api/categories', { method: 'GET' }) +} = await useFetch>('/api/categories', { method: 'GET', query: { type: 'TALENT' } }) getCategories.value!.forEach((category: any) => categories.value.push({ label: category.name, slug: category.slug })) const appConfig = useAppConfig()