diff --git a/frontend/src/routes/paths/[slug]/+page.ts b/frontend/src/routes/paths/[slug]/+page.ts index a83a267..3261101 100644 --- a/frontend/src/routes/paths/[slug]/+page.ts +++ b/frontend/src/routes/paths/[slug]/+page.ts @@ -5,7 +5,7 @@ export async function load({ params }) { const categories: App.Category[] = await getRouteCategories(); const categoryId = Number(params.slug); - const category: App.Category = categories.find(c => c.id === categoryId); + const category: App.Category = categories.find(c => c.id === categoryId) as App.Category; if (!category) { error(404);