Skip to content

Commit

Permalink
Fix date filters
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom committed Oct 20, 2023
1 parent 4f0d05a commit 41cbff4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const dateItemLabelRenderer = (property: string, { value, operator }: Dat
let operatorTextDisplay = operatorText[operator].length > 0 ? `${operatorText[operator]} ` : '';

if (dateOption) {
valueText = dateOption.label.toLowerCase();
operatorTextDisplay = 'in ';
valueText = dateOption.label;
operatorTextDisplay = '';
} else {
const isBetween = [FilterDateOperator.BETWEEN, FilterDateOperator.NOT_BETWEEN].includes(operator);
if (isBetween) {
Expand Down

0 comments on commit 41cbff4

Please sign in to comment.