diff --git a/frontend/src/lib/components/InputTransformForm.svelte b/frontend/src/lib/components/InputTransformForm.svelte index c0aed6970a..cb623855da 100644 --- a/frontend/src/lib/components/InputTransformForm.svelte +++ b/frontend/src/lib/components/InputTransformForm.svelte @@ -98,33 +98,46 @@ {/if} - { - const type = e.detail ? 'javascript' : 'static' - const staticTemplate = isStaticTemplate(inputCats[argName]) - if (type === 'javascript') { - arg.expr = getDefaultExpr( - importPath, - argName, - staticTemplate ? `\`${arg.value ?? ''}\`` : arg.value - ) +
+ { + const type = e.detail ? 'javascript' : 'static' + const staticTemplate = isStaticTemplate(inputCats[argName]) + if (type === 'javascript') { + arg.expr = getDefaultExpr( + importPath, + argName, + staticTemplate ? `\`${arg.value ?? ''}\`` : arg.value + ) - arg.value = undefined - propertyType = 'javascript' - } else { - arg.value = staticTemplate ? codeToStaticTemplate(arg.expr) : undefined + arg.value = undefined + propertyType = 'javascript' + } else { + arg.value = staticTemplate ? codeToStaticTemplate(arg.expr) : undefined - arg.expr = undefined - propertyType = 'static' - } + arg.expr = undefined + propertyType = 'static' + } - arg.type = type - }} - /> + arg.type = type + }} + /> +
{ + focusProp(argName, 'connect', (path) => { + connectProperty(argName, path) + }) + }} + > + +
+
@@ -163,23 +176,7 @@ setPropertyType(e.detail.rawValue) } }} - > -
-
{ - focusProp(argName, 'connect', (path) => { - connectProperty(argName, path) - }) - }} - > - - - -
-
- + /> {:else if checked} {#if arg.expr != undefined}
@@ -199,6 +196,7 @@ />
+
{/if} {:else}

Not recognized arg type {arg.type}