Fix crash when building lucene query with a bool value already as a bool type

This commit is contained in:
Andrew Kingston 2021-07-26 13:08:22 +01:00
parent 2715ff77d8
commit 06e5a038f2
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export const buildLuceneQuery = filter => {
value = parseFloat(value) value = parseFloat(value)
} }
if (type === "boolean") { if (type === "boolean") {
value = value?.toLowerCase() === "true" value = `${value}`?.toLowerCase() === "true"
} }
if (operator.startsWith("range")) { if (operator.startsWith("range")) {
if (!query.range[field]) { if (!query.range[field]) {