Skip to content

Commit

Permalink
bug: fix pagination of tables
Browse files Browse the repository at this point in the history
  • Loading branch information
baurnick committed Aug 9, 2024
1 parent fcfafc1 commit fdbcd1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
getCoreRowModel,
getSortedRowModel,
getFilteredRowModel,
getPaginationRowModel,
SortingState,
useReactTable,
VisibilityState,
Expand All @@ -33,6 +34,7 @@ const TeamMemberTable = <TData,>({ columns, data }: TeamMemberTableProps<TData>)
onColumnVisibilityChange: setColumnVisibility,
onColumnFiltersChange: setColumnFilters,
getFilteredRowModel: getFilteredRowModel(),
getPaginationRowModel: getPaginationRowModel(),
state: {
sorting,
columnVisibility,
Expand Down
2 changes: 2 additions & 0 deletions app/(main)/team/components/TeamTable/TeamTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
getCoreRowModel,
getSortedRowModel,
getFilteredRowModel,
getPaginationRowModel,
SortingState,
useReactTable,
VisibilityState,
Expand Down Expand Up @@ -42,6 +43,7 @@ const TeamTable = <TData,>({ columns, data }: TeamTableProps<TData>) => {
onColumnVisibilityChange: setColumnVisibility,
onColumnFiltersChange: setColumnFilters,
getFilteredRowModel: getFilteredRowModel(),
getPaginationRowModel: getPaginationRowModel(),
state: {
sorting,
columnVisibility,
Expand Down

0 comments on commit fdbcd1b

Please sign in to comment.