diff --git a/src/components/Pagination/index.tsx b/src/components/Pagination/index.tsx index 30f31f597..39eafbc89 100644 --- a/src/components/Pagination/index.tsx +++ b/src/components/Pagination/index.tsx @@ -24,7 +24,7 @@ export const getPaginationInfo = ({ pageSize = 10, totalItems = 0, }) => { - const firstItemOnPage = (page - 1) * pageSize + 1; + const firstItemOnPage = totalItems > 0 ? (page - 1) * pageSize + 1 : 0; const lastItemOnPage = Math.min( (page - 1) * pageSize + pageSize, totalItems ?? 0