From afbba6bbd16fc2e3c89a513098590e112c8a4e5f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 24 Nov 2022 02:30:41 +0100 Subject: [PATCH] fix flow UX --- frontend/src/lib/components/InputTransformForm.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/InputTransformForm.svelte b/frontend/src/lib/components/InputTransformForm.svelte index 1954511d07..297247c4e3 100644 --- a/frontend/src/lib/components/InputTransformForm.svelte +++ b/frontend/src/lib/components/InputTransformForm.svelte @@ -26,7 +26,7 @@ let inputCat: InputCat = 'object' let propertyType = getPropertyType(arg) - $: isStaticTemplate(inputCat) && setPropertyType(arg.expr) + $: isStaticTemplate(inputCat) && arg.expr && (arg.value = codeToStaticTemplate(arg.expr)) function getPropertyType(arg: InputTransform | any): 'static' | 'javascript' { let type: 'static' | 'javascript' = arg?.type ?? 'static' @@ -44,6 +44,7 @@ } if (isCodeInjection(rawValue)) { + console.log(rawValue) arg.expr = getDefaultExpr(argName, previousModuleId, `\`${rawValue}\``) arg.type = 'javascript' propertyType = 'static'