Skip to content

Commit

Permalink
docs: Use correct pagecount accessor (#5732) (#5786)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0rb3n authored Dec 30, 2024
1 parent a430212 commit 510c6a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function ActionButtons<T extends RowData>({
<input
type="number"
min="1"
max={table.getPageCount()}
max={pageCount}
defaultValue={pageIndex + 1}
onChange={e => {
const page = e.target.value ? Number(e.target.value) - 1 : 0
Expand Down

0 comments on commit 510c6a7

Please sign in to comment.