We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccc62b3 + 1ad035d commit 33cda81Copy full SHA for 33cda81
packages/mantine-react-table/src/hooks/useMRT_Effects.ts
@@ -71,7 +71,7 @@ export const useMRT_Effects = <TData extends MRT_RowData>(
71
if (!enablePagination || isLoading || showSkeletons) return;
72
const { pageIndex, pageSize } = pagination;
73
const firstVisibleRowIndex = pageIndex * pageSize;
74
- if (firstVisibleRowIndex >= totalRowCount) {
+ if (firstVisibleRowIndex >= totalRowCount && firstVisibleRowIndex > 0) {
75
table.setPageIndex(Math.ceil(totalRowCount / pageSize) - 1);
76
}
77
}, [totalRowCount]);
0 commit comments