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
1 changed files with 6 additions and 1 deletions

View File

@ -121,7 +121,12 @@ export const buildLuceneQuery = filter => {
query.allOr = true query.allOr = true
return 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 // Ensure date value is a valid date and parse into correct format
if (!value) { if (!value) {
return return