Skip to content

Commit

Permalink
Merge pull request #179 from diggsweden/DIGG-218-beta
Browse files Browse the repository at this point in the history
Mini fix
  • Loading branch information
AlessandroGasperini authored Jan 22, 2024
2 parents 0e05123 + 76557cc commit caa0f37
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 caa0f37

Please sign in to comment.