From c0967ffe01f03c41fc8dc8027a029fff442fa64e Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Mon, 27 Jun 2022 14:37:15 +0100 Subject: [PATCH] Remove console log --- packages/frontend-core/src/utils/lucene.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/frontend-core/src/utils/lucene.js b/packages/frontend-core/src/utils/lucene.js index 9fa5a72317..1001ec26a8 100644 --- a/packages/frontend-core/src/utils/lucene.js +++ b/packages/frontend-core/src/utils/lucene.js @@ -141,7 +141,6 @@ export const buildLuceneQuery = filter => { query[operator][field] = value } } else { - console.log("VAL ", value) query[operator][field] = value } } @@ -223,7 +222,7 @@ export const runLuceneQuery = (docs, query) => { if (typeof testValue === "string") { testValue = testValue.split(",") if (typeof docValue === "number") { - testValue = testValue.map(item => Number(item)) + testValue = testValue.map(item => parseFloat(item)) } } return !testValue?.includes(docValue)