Skip to content

Commit

Permalink
Consider date-range as range filter in filter label
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwcole committed Jul 17, 2024
1 parent ff92df3 commit 55274b8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const MRT_TableHeadCellFilterLabel = <TData extends MRT_RowData>({

const isRangeFilter =
columnDef.filterVariant === 'range' ||
columnDef.filterVariant === 'date-range' ||
['between', 'betweenInclusive', 'inNumberRange'].includes(
columnDef._filterFn,
);
Expand Down

0 comments on commit 55274b8

Please sign in to comment.