diff --git a/apps/www/app/examples/tasks/components/data-table-toolbar.tsx b/apps/www/app/examples/tasks/components/data-table-toolbar.tsx index 1bf54fe4c8..4f3fc61e9d 100644 --- a/apps/www/app/examples/tasks/components/data-table-toolbar.tsx +++ b/apps/www/app/examples/tasks/components/data-table-toolbar.tsx @@ -17,9 +17,7 @@ interface DataTableToolbarProps { export function DataTableToolbar({ table, }: DataTableToolbarProps) { - const isFiltered = - table.getPreFilteredRowModel().rows.length > - table.getFilteredRowModel().rows.length + const isFiltered = table.getState().columnFilters.length > 0 return (