Skip to content

Commit 29e39df

Browse files
committed
feat: Customize filter count to show '9+' if more than 9 h2oai#1689
1 parent 3ea2bcf commit 29e39df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ const
402402
if (c.filterable) {
403403
const dataKey = c.name // Assuming the column name represents the data key
404404
const appliedFilters = selectedFilters?.[dataKey]?.length || 0
405-
label += appliedFilters > 0 ? ` (${appliedFilters} filters)` : ''
405+
label += (appliedFilters > 0 && appliedFilters <= 9) ? ` (${appliedFilters})` : appliedFilters > 9 ? '(9+)' : ''
406406
}
407407
return {
408408
key: c.name,

0 commit comments

Comments
 (0)