Merge branch 'master' into budi-8637-googlesheets-issues-automations-row-actions-and-filtering-1
This commit is contained in:
commit
c18213bc7a
|
@ -1,4 +1,5 @@
|
||||||
import { QueryUtils } from "@budibase/frontend-core"
|
import { QueryUtils } from "@budibase/frontend-core"
|
||||||
|
import { EmptyFilterOption } from "@budibase/types"
|
||||||
|
|
||||||
export const getActiveConditions = conditions => {
|
export const getActiveConditions = conditions => {
|
||||||
if (!conditions?.length) {
|
if (!conditions?.length) {
|
||||||
|
@ -33,7 +34,8 @@ export const getActiveConditions = conditions => {
|
||||||
value: condition.referenceValue,
|
value: condition.referenceValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
const query = QueryUtils.buildQuery([luceneCondition])
|
let query = QueryUtils.buildQuery([luceneCondition])
|
||||||
|
query.onEmptyFilter = EmptyFilterOption.RETURN_NONE
|
||||||
const result = QueryUtils.runQuery([luceneCondition], query)
|
const result = QueryUtils.runQuery([luceneCondition], query)
|
||||||
return result.length > 0
|
return result.length > 0
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue