diff --git a/packages/react-table/src/demos/examples/TableSortableResponsive.tsx b/packages/react-table/src/demos/examples/TableSortableResponsive.tsx index 5f089b071b9..288f9fd846c 100644 --- a/packages/react-table/src/demos/examples/TableSortableResponsive.tsx +++ b/packages/react-table/src/demos/examples/TableSortableResponsive.tsx @@ -88,7 +88,7 @@ export const TableSortableResponsive: React.FunctionComponent = () => { const kebabDropdownItems = [Some action]; React.useEffect(() => { - setSortedRows(sortedData.slice((page - 1) * perPage, page * perPage - 1)); + setSortedRows(sortedData.slice((page - 1) * perPage, page * perPage)); }, [sortedData, page, perPage]); const handleSetPage = (_evt: React.MouseEvent | React.KeyboardEvent | MouseEvent, newPage: number) => {