1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: make DATE_AFTER the default time operator

This commit is contained in:
Thomas Heartman 2022-03-16 10:26:17 +01:00
parent f52ca03b55
commit 89d0da1c64

View File

@ -9,7 +9,7 @@ import ConditionallyRender from '../../../ConditionallyRender';
import {
allOperators,
dateOperators,
DATE_BEFORE,
DATE_AFTER,
IN,
} from '../../../../../constants/operators';
import { SAVE } from '../ConstraintAccordionEdit';
@ -56,7 +56,7 @@ export const ConstraintAccordionEditHeader = ({
) {
setLocalConstraint(prev => ({
...prev,
operator: DATE_BEFORE,
operator: DATE_AFTER,
value: new Date().toISOString(),
}));
} else if (