1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Don't cast datetime is checking (not)empty

This commit is contained in:
Mel O'Hagan 2022-10-03 16:06:00 +01:00
parent e08d4175c2
commit 044e9ad90d

View file

@ -121,7 +121,12 @@ export const buildLuceneQuery = filter => {
query.allOr = true
return
}
if (type === "datetime" && !isHbs) {
if (
type === "datetime" &&
!isHbs &&
operator !== "empty" &&
operator !== "notEmpty"
) {
// Ensure date value is a valid date and parse into correct format
if (!value) {
return