1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Fix filtering pg datasource

This commit is contained in:
Adria Navarro 2023-10-04 12:20:19 +02:00
parent 96b077f8a5
commit 63306d3509

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