We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22eb56a commit 7144e20Copy full SHA for 7144e20
1 file changed
src/components/Table/common/utils.ts
@@ -54,13 +54,12 @@ export function buildCategoryViews<T extends RowData>(
54
const label = columnHeader as string;
55
// Handle range categories.
56
if (columnDef.filterFn === "inNumberRange") {
57
- const [min = -Infinity, max = Infinity] =
58
- getFacetedMinMaxValues() || [];
+ const [min, max] = getFacetedMinMaxValues() || [];
59
categoryViews.push({
60
key,
61
label,
62
- max,
63
- min,
+ max: max ?? Infinity,
+ min: min ?? -Infinity,
64
selectedMax: null, // Selected state updated in reducer.
65
selectedMin: null, // Selected state updated in reducer.
66
});
0 commit comments