Skip to content

Commit

Permalink
fix(front): fixes missing category prop on PageNav in category page
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Oct 7, 2023
1 parent 24f4172 commit 95c8eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/src/routes/posts/category/[category]/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion front/src/routes/posts/category/[category]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{name}
</h2>
</TransitionFade> -->
<PageNav {categories} mini top {pathname} {setActiveLink} />
<PageNav {categories} mini top {pathname} {setActiveLink} {category} />
</header>
<div class="category-posts-list">
<Flourish />
Expand Down

0 comments on commit 95c8eb3

Please sign in to comment.