diff --git a/frontend/src/routes/paths/[slug]/+page.ts b/frontend/src/routes/paths/[slug]/+page.ts index 3261101..acb0966 100644 --- a/frontend/src/routes/paths/[slug]/+page.ts +++ b/frontend/src/routes/paths/[slug]/+page.ts @@ -11,8 +11,10 @@ export async function load({ params }) { error(404); } - return { + const toReturn = { category: category.name_it, routes: await getRouteByCategory(categoryId), } + + return toReturn; } \ No newline at end of file