From 41cbff415aa5ce822ef990d9aab390d04587198b Mon Sep 17 00:00:00 2001 From: Gasper Grom Date: Fri, 20 Oct 2023 14:34:04 +0700 Subject: [PATCH] Fix date filters --- .../filters/config/itemLabelRenderer/date.label.renderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/shared/modules/filters/config/itemLabelRenderer/date.label.renderer.ts b/frontend/src/shared/modules/filters/config/itemLabelRenderer/date.label.renderer.ts index 1436eb2108..b8e2b7c621 100644 --- a/frontend/src/shared/modules/filters/config/itemLabelRenderer/date.label.renderer.ts +++ b/frontend/src/shared/modules/filters/config/itemLabelRenderer/date.label.renderer.ts @@ -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) {