From c6cc8769ae46c9a0c162d6e180c69fe99e4c8bb4 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 8 Sep 2023 00:51:09 +0200 Subject: [PATCH] fix flow builder input transforms --- frontend/src/lib/components/InputTransformForm.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/InputTransformForm.svelte b/frontend/src/lib/components/InputTransformForm.svelte index f5aa30c546..52ea222c6a 100644 --- a/frontend/src/lib/components/InputTransformForm.svelte +++ b/frontend/src/lib/components/InputTransformForm.svelte @@ -47,11 +47,11 @@ let propertyType = getPropertyType(arg) - // function updatePropertyType() { - // propertyType = arg.type - // } + function updatePropertyType() { + propertyType = arg.type + } - // $: arg.type !== propertyType && updatePropertyType() + $: arg?.type !== propertyType && updatePropertyType() function getPropertyType(arg: InputTransform | any): 'static' | 'javascript' { let type: 'static' | 'javascript' = arg?.type ?? 'static'