Timothy J. Baek 10 months ago
parent
commit
3c7f45ced4

+ 4 - 1
src/lib/components/admin/Settings/Connections.svelte

@@ -230,7 +230,10 @@
 										{/if}
 									</div>
 
-									<SensitiveInput placeholder={$i18n.t('API Key')} value={OPENAI_API_KEYS[idx]} />
+									<SensitiveInput
+										placeholder={$i18n.t('API Key')}
+										bind:value={OPENAI_API_KEYS[idx]}
+									/>
 									<div class="self-center flex items-center">
 										{#if idx === 0}
 											<button

+ 1 - 1
src/lib/components/common/SensitiveInput.svelte

@@ -1,5 +1,5 @@
 <script lang="ts">
-	export let value: string;
+	export let value: string = '';
 	export let placeholder = '';
 	export let readOnly = false;
 	export let outerClassName = 'flex flex-1';