From 9708539631b1fd56a4122b6480fcdb8130fef3ad Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 9 Dec 2021 19:36:53 +0000 Subject: [PATCH] Fix blocks not filtering properly on number fields --- packages/client/src/components/app/blocks/CardsBlock.svelte | 2 +- packages/client/src/components/app/blocks/TableBlock.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/app/blocks/CardsBlock.svelte b/packages/client/src/components/app/blocks/CardsBlock.svelte index ec631ede36..3a136b5b20 100644 --- a/packages/client/src/components/app/blocks/CardsBlock.svelte +++ b/packages/client/src/components/app/blocks/CardsBlock.svelte @@ -73,7 +73,7 @@ enrichedFilter.push({ field: column.name, operator: column.type === "string" ? "string" : "equal", - type: "string", + type: column.type === "string" ? "string" : "number", valueType: "Binding", value: `{{ [${formId}].[${column.name}] }}`, }) diff --git a/packages/client/src/components/app/blocks/TableBlock.svelte b/packages/client/src/components/app/blocks/TableBlock.svelte index 55937d1b7f..1f561f9b5d 100644 --- a/packages/client/src/components/app/blocks/TableBlock.svelte +++ b/packages/client/src/components/app/blocks/TableBlock.svelte @@ -61,7 +61,7 @@ enrichedFilter.push({ field: column.name, operator: column.type === "string" ? "string" : "equal", - type: "string", + type: column.type === "string" ? "string" : "number", valueType: "Binding", value: `{{ ${safe(formId)}.${safe(column.name)} }}`, })