From d615513558597bbc917b3651735026b46b10d14d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 11 Aug 2021 16:46:01 +0100 Subject: [PATCH] Fix validation value component always being an input --- .../ValidationEditor/ValidationDrawer.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ValidationEditor/ValidationDrawer.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ValidationEditor/ValidationDrawer.svelte index 16107eb70e..939b27df63 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ValidationEditor/ValidationDrawer.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ValidationEditor/ValidationDrawer.svelte @@ -197,6 +197,8 @@ const removeRule = id => { rules = rules.filter(link => link.id !== id) } + + $: console.log(fieldType) @@ -277,13 +279,13 @@ /> {:else} - {#if ["string", "number", "options", "longform"].includes(rule.type) || ["contains"]} + {#if ["string", "number", "options", "longform"].includes(rule.type)} - {:else if fieldType === "boolean"} + {:else if rule.type === "boolean"}