From 95c8eb3f5468fa84893f33b809b166e7f07522b7 Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Sat, 7 Oct 2023 16:58:44 -0400 Subject: [PATCH] fix(front): fixes missing category prop on `PageNav` in category page --- front/src/routes/posts/category/[category]/+page.server.js | 2 +- front/src/routes/posts/category/[category]/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/routes/posts/category/[category]/+page.server.js b/front/src/routes/posts/category/[category]/+page.server.js index afee32ddc..e58ddc977 100644 --- a/front/src/routes/posts/category/[category]/+page.server.js +++ b/front/src/routes/posts/category/[category]/+page.server.js @@ -9,7 +9,7 @@ import { } from '$env/static/public'; export async function load({ params }) { - const { category } = params || 'all'; + const category = params.category || 'all'; const categoryPageEndpoint = URL + '/categories-page?populate[0]=seo.metaImage'; const categoriesListEndpoint = diff --git a/front/src/routes/posts/category/[category]/+page.svelte b/front/src/routes/posts/category/[category]/+page.svelte index ada0d90bb..b54ea833c 100644 --- a/front/src/routes/posts/category/[category]/+page.svelte +++ b/front/src/routes/posts/category/[category]/+page.svelte @@ -41,7 +41,7 @@ {name} --> - +