diff options
Diffstat (limited to 'src/components/elements')
| -rw-r--r-- | src/components/elements/Pagination.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/elements/Pagination.js b/src/components/elements/Pagination.js index 1cb1bca0..d30b4f16 100644 --- a/src/components/elements/Pagination.js +++ b/src/components/elements/Pagination.js @@ -7,7 +7,7 @@ export default function Pagination({ pageCount, currentPage, url }) { let dotsNextPage = false; let urlParameterPrefix = url.includes('?') ? '&' : '?'; - return ( + return pageCount > 0 && ( <div className="pagination"> {Array.from(Array(pageCount)).map((v, i) => { let page = i + 1; |
