diff --git a/src/components/table-toolbar/PaginatingTableToolbar.tsx b/src/components/table-toolbar/PaginatingTableToolbar.tsx index 510affb015..6fe848ed2c 100644 --- a/src/components/table-toolbar/PaginatingTableToolbar.tsx +++ b/src/components/table-toolbar/PaginatingTableToolbar.tsx @@ -38,7 +38,7 @@ export const PaginatingTableToolbar = ({ inputGroupOnChange, inputGroupOnClick, }: TableToolbarProps) => { - const page = first / max; + const page = Math.round(first / max); const pagination = (variant: "top" | "bottom" = "top") => ( onNextClick((p - 1) * max)} onPreviousClick={(_, p) => onPreviousClick((p - 1) * max)} - onPerPageSelect={(_, m, f) => onPerPageSelect(f, m)} + onPerPageSelect={(_, m, f) => onPerPageSelect(f - 1, m)} variant={variant} /> );