Skip to content

Commit

Permalink
fix: update row total number when filtering the table
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocorallo committed Aug 22, 2024
1 parent 8d26cf1 commit ee47c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/viewer/Table/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Pagination<TData>({
<div className="my-2 flex items-center justify-end max-sm:flex-col max-sm:items-start max-sm:gap-2 sm:space-x-6">
<div className="sm:flex-1">
<p className="text-sm font-medium">
Totale righe: {table.getCoreRowModel().rows.length}
Totale righe: {table.getFilteredRowModel().rows.length}
</p>
</div>
<div className="flex items-center space-x-2">
Expand Down

0 comments on commit ee47c6c

Please sign in to comment.