Skip to content

Commit

Permalink
fix(TableSortableResponsive demo): end page number (#10170)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora authored Mar 26, 2024
1 parent cbbfcf4 commit b1b8706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const TableSortableResponsive: React.FunctionComponent = () => {
const kebabDropdownItems = [<OverflowMenuDropdownItem key="kebab-1">Some action</OverflowMenuDropdownItem>];

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) => {
Expand Down

0 comments on commit b1b8706

Please sign in to comment.