Browse Source

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

gh-pages
Andrew Kingston 5 years ago
parent
commit
2671d02cf4
  1. 2
      packages/standard-components/src/lucene.js

2
packages/standard-components/src/lucene.js

@ -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]) {

Loading…
Cancel
Save