From d5ef915f399ba00e24c412079a58feec7587d4a5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 25 Jan 2022 08:42:07 +0000 Subject: [PATCH] Fix filtering no datetime fields in blocks --- 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 f0892ca447..061eeb48f9 100644 --- a/packages/client/src/components/app/blocks/CardsBlock.svelte +++ b/packages/client/src/components/app/blocks/CardsBlock.svelte @@ -75,7 +75,7 @@ enrichedFilter.push({ field: column.name, operator: column.type === "string" ? "string" : "equal", - type: column.type === "string" ? "string" : "number", + type: column.type, valueType: "Binding", value: `{{ ${safe(formId)}.${safePath} }}`, }) diff --git a/packages/client/src/components/app/blocks/TableBlock.svelte b/packages/client/src/components/app/blocks/TableBlock.svelte index 3de4497731..8c9142958c 100644 --- a/packages/client/src/components/app/blocks/TableBlock.svelte +++ b/packages/client/src/components/app/blocks/TableBlock.svelte @@ -63,7 +63,7 @@ enrichedFilter.push({ field: column.name, operator: column.type === "string" ? "string" : "equal", - type: column.type === "string" ? "string" : "number", + type: column.type, valueType: "Binding", value: `{{ ${safe(formId)}.${safePath} }}`, })