Skip to content

Commit 5fc9458

Browse files
committed
[EAM-1022] Fix datetime filter operator options
1 parent 8372d3c commit 5fc9458

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/ui/components/grids/eam/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ var getEAMFilterOperators = function getEAMFilterOperators(_ref) {
164164
}];
165165

166166
case "DATE":
167+
case "DATETIME":
167168
return [{
168169
'value': OPERATORS.GREATER_THAN,
169170
'label': 'Greater than',
@@ -473,7 +474,7 @@ var EAMFilterField = function EAMFilterField(_ref6) {
473474
clearable: 1,
474475
variant: "inline",
475476
ampm: false,
476-
value: localFilter.fieldValue || null,
477+
value: localFilter._dateValue || null,
477478
onChange: handleDatePickersChange,
478479
format: "dd-MMM-yyyy HH:mm",
479480
TextFieldComponent: FilterTextField,

src/ui/components/grids/eam/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ const getEAMFilterOperators = ({ column }) => {
119119
{'value': OPERATORS.NOT_EMPTY, 'label': 'Is not empty', 'icon': <Rhombus/>}
120120
];
121121
case "DATE":
122+
case "DATETIME":
122123
return [
123124
{'value': OPERATORS.GREATER_THAN, 'label': 'Greater than', 'icon': <GreaterThan/>},
124125
{'value': OPERATORS.EQUAL, 'label': 'Equals', 'icon': <Equal/>},
@@ -352,7 +353,7 @@ const EAMFilterField = ({ column }) => {
352353
clearable={1}
353354
variant="inline"
354355
ampm={false}
355-
value={localFilter.fieldValue || null}
356+
value={localFilter._dateValue || null}
356357
onChange={handleDatePickersChange}
357358
format="dd-MMM-yyyy HH:mm"
358359
TextFieldComponent={FilterTextField}

0 commit comments

Comments
 (0)