Merge branch 'master' of github.com:budibase/budibase into budi-8637-googlesheets-issues-automations-row-actions-and-filtering-2

This commit is contained in:
Sam Rose 2024-09-20 10:17:58 +01:00
commit 8359c3de24
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { QueryUtils } from "@budibase/frontend-core"
import { EmptyFilterOption } from "@budibase/types"
export const getActiveConditions = conditions => {
if (!conditions?.length) {
@ -33,7 +34,8 @@ export const getActiveConditions = conditions => {
value: condition.referenceValue,
}
const query = QueryUtils.buildQuery([luceneCondition])
let query = QueryUtils.buildQuery([luceneCondition])
query.onEmptyFilter = EmptyFilterOption.RETURN_NONE
const result = QueryUtils.runQuery([luceneCondition], query)
return result.length > 0
})