From 56204a511ca8cff0811888fc0589e327a9acaf03 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 27 Nov 2022 17:43:39 +0100 Subject: [PATCH] ensure we always load the secret value in the variable editor --- frontend/src/lib/components/VariableEditor.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}