Skip to content

Commit

Permalink
appease types
Browse files Browse the repository at this point in the history
  • Loading branch information
gwwar committed Oct 3, 2024
1 parent cde0485 commit b5e9179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/DataTable/DataTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ export const Playground = (args: DataTableProps<UniqueRow> & ColWidthArgTypes) =
const align = args.align as CellAlignment

const [pageIndex, setPageIndex] = React.useState(0)
const start = pageIndex * args.pageSize
const end = start + args.pageSize
const start = pageIndex * parseInt(args.pageSize, 10)
const end = start + parseInt(args.pageSize, 10)
const rows = data.slice(start, end)

return (
Expand Down

0 comments on commit b5e9179

Please sign in to comment.