Skip to content

Commit

Permalink
Mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Gasperini authored and Alessandro Gasperini committed Jan 22, 2024
1 parent 6130654 commit 76557cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/content/ListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@ export const ListPage: FC<PublicationListResponse> = ({
publications={publicationsOnPage}
heading={`${publications.length} ${heading}`}
/>

<div className="flex justify-center">
{router.isReady && (
{publications.length > 12 && (
<div className="flex justify-center">
<Pagination
totalResults={publications.length || 0}
itemsPerPage={publicationsPerPage}
pageNumber={parseInt(router.query.page as string)}
changePage={changePage}
/>
)}
</div>
</div>
)}
</Container>
</div>
);
Expand Down

0 comments on commit 76557cc

Please sign in to comment.