Skip to content

Commit

Permalink
feat(finefoods-client): fix page params
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed May 18, 2024
1 parent 4af8961 commit c1b9388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/finefoods-client/src/app/categories/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default async function CategoryShowPage({
const { categories, products } = await getData({
categoryId: params.id,
productPaginationOptions: {
current: searchParams.page ? Number(searchParams.page as string) : 1,
current: searchParams.current
? Number(searchParams.current as string)
: 1,
},
});

Expand Down

0 comments on commit c1b9388

Please sign in to comment.