diff --git a/frontend/src/lib/components/VariableEditor.svelte b/frontend/src/lib/components/VariableEditor.svelte index 2091952aab..f17b700b5f 100644 --- a/frontend/src/lib/components/VariableEditor.svelte +++ b/frontend/src/lib/components/VariableEditor.svelte @@ -70,6 +70,7 @@ decryptSecret: true }) variable.value = getV.value ?? '' + editor?.getCode(variable.value) } const MAX_VARIABLE_LENGTH = 3000 @@ -117,6 +118,7 @@ } } let editorKind: 'plain' | 'json' | 'yaml' = 'plain' + let editor: SimpleEditor | undefined = undefined @@ -170,11 +172,11 @@ /> {:else if editorKind == 'json'}
- +
{:else if editorKind == 'yaml'}
- +
{/if}