Skip to content

Commit

Permalink
replaced defaultPerPage with rowsPerPage state
Browse files Browse the repository at this point in the history
  • Loading branch information
mnshrm committed Nov 5, 2024
1 parent ba2d15e commit abfdb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Common/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Pagination = ({
};

const totalCount = data.totalCount;
if (!totalCount || totalCount < defaultPerPage) {
if (!totalCount || totalCount < rowsPerPage) {
return null;
}
const totalPage = Math.ceil(totalCount / rowsPerPage);
Expand Down

0 comments on commit abfdb83

Please sign in to comment.