From 63306d350964e836af228654527b1e6af3d97ce6 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 4 Oct 2023 12:20:19 +0200 Subject: [PATCH 1/2] Fix filtering pg datasource --- .../backend/DataTable/buttons/TableFilterButton.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte index 23f6d1dea1..91456da655 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/TableFilterButton.svelte @@ -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 From 4bbd575cb0199236205923a0c4e41a0f6977c1a2 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Wed, 4 Oct 2023 15:00:11 +0000 Subject: [PATCH 2/2] Bump version to 2.11.10 --- lerna.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lerna.json b/lerna.json index 8e9e1c548a..aa2399aaab 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.11.9", + "version": "2.11.10", "npmClient": "yarn", "packages": [ "packages/*"