From fdbcd1b31b85c645673a96325b741985a755972f Mon Sep 17 00:00:00 2001 From: Nick Baur <79518844+baurnick@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:17:20 +0200 Subject: [PATCH] bug: fix pagination of tables --- app/(main)/team/components/TeamMembersTable/TeamMemberTable.tsx | 2 ++ app/(main)/team/components/TeamTable/TeamTable.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/(main)/team/components/TeamMembersTable/TeamMemberTable.tsx b/app/(main)/team/components/TeamMembersTable/TeamMemberTable.tsx index f66120b..d0f906d 100644 --- a/app/(main)/team/components/TeamMembersTable/TeamMemberTable.tsx +++ b/app/(main)/team/components/TeamMembersTable/TeamMemberTable.tsx @@ -7,6 +7,7 @@ import { getCoreRowModel, getSortedRowModel, getFilteredRowModel, + getPaginationRowModel, SortingState, useReactTable, VisibilityState, @@ -33,6 +34,7 @@ const TeamMemberTable = ({ columns, data }: TeamMemberTableProps) onColumnVisibilityChange: setColumnVisibility, onColumnFiltersChange: setColumnFilters, getFilteredRowModel: getFilteredRowModel(), + getPaginationRowModel: getPaginationRowModel(), state: { sorting, columnVisibility, diff --git a/app/(main)/team/components/TeamTable/TeamTable.tsx b/app/(main)/team/components/TeamTable/TeamTable.tsx index b4fe2bf..ea91406 100644 --- a/app/(main)/team/components/TeamTable/TeamTable.tsx +++ b/app/(main)/team/components/TeamTable/TeamTable.tsx @@ -10,6 +10,7 @@ import { getCoreRowModel, getSortedRowModel, getFilteredRowModel, + getPaginationRowModel, SortingState, useReactTable, VisibilityState, @@ -42,6 +43,7 @@ const TeamTable = ({ columns, data }: TeamTableProps) => { onColumnVisibilityChange: setColumnVisibility, onColumnFiltersChange: setColumnFilters, getFilteredRowModel: getFilteredRowModel(), + getPaginationRowModel: getPaginationRowModel(), state: { sorting, columnVisibility,