From 06e5a038f201a8c190cf49200dc2fcbb9bded30e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 26 Jul 2021 13:08:22 +0100 Subject: [PATCH] Fix crash when building lucene query with a bool value already as a bool type --- packages/standard-components/src/lucene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/standard-components/src/lucene.js b/packages/standard-components/src/lucene.js index 19566acc64..50aae1f32c 100644 --- a/packages/standard-components/src/lucene.js +++ b/packages/standard-components/src/lucene.js @@ -23,7 +23,7 @@ export const buildLuceneQuery = filter => { value = parseFloat(value) } if (type === "boolean") { - value = value?.toLowerCase() === "true" + value = `${value}`?.toLowerCase() === "true" } if (operator.startsWith("range")) { if (!query.range[field]) {