Fix lucene filtering crashing when being provided an invalid binding string as the document array
This commit is contained in:
parent
689f3c9647
commit
91016c6dc9
|
@ -97,6 +97,9 @@ export const buildLuceneQuery = filter => {
|
|||
* @param query the JSON lucene query
|
||||
*/
|
||||
export const luceneQuery = (docs, query) => {
|
||||
if (!docs || !Array.isArray(docs)) {
|
||||
return []
|
||||
}
|
||||
if (!query) {
|
||||
return docs
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue