Merge pull request #11971 from Budibase/fix/filtering_pg_data_in_data_section

Fix filtering pg datasource
This commit is contained in:
Adria Navarro 2023-10-04 16:59:52 +02:00 committed by GitHub
commit 8a22828b97
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,13 @@
let modal
$: tempValue = filters || []
$: schemaFields = Object.values(schema || {})
$: schemaFields = Object.entries(schema || {}).map(
([fieldName, fieldSchema]) => ({
name: fieldName, // Using the key as name if not defined in the schema, for example in some autogenerated columns
...fieldSchema,
})
)
$: text = getText(filters)
$: selected = tempValue.filter(x => !x.onEmptyFilter)?.length > 0