From b1d2481e6622e9e58f24e109b077c956436d49f3 Mon Sep 17 00:00:00 2001 From: Alessio Davoli Date: Fri, 22 Dec 2023 12:02:00 +0100 Subject: [PATCH] visualize return value --- frontend/src/routes/paths/[slug]/+page.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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