Skip to content

Commit

Permalink
Fix data table pagination row count
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Jul 8, 2024
1 parent 5e9426d commit 2b85ebb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function DataTablePagination<TData>({
return (
<div className="flex items-center flex-wrap justify-between space-x-2">
<div className="flex-1 text-sm text-muted-foreground mb-2">
Showing {table.getFilteredRowModel().rows.length} row(s)
Showing {table?.getFilteredRowModel()?.rows?.length} row(s)
</div>
<div className="flex flex-2 gap-1 items-center justify-between flex-wrap space-x-6 lg:space-x-8">
<div className="flex items-center space-x-2">
Expand Down

0 comments on commit 2b85ebb

Please sign in to comment.