From 75b18f92b90108bf94a0e25490f927a7e54a8eca Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 22 Mar 2025 14:01:07 -0700 Subject: [PATCH] refac --- src/lib/components/AddConnectionModal.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/AddConnectionModal.svelte b/src/lib/components/AddConnectionModal.svelte index 7a82f340c..52fd51999 100644 --- a/src/lib/components/AddConnectionModal.svelte +++ b/src/lib/components/AddConnectionModal.svelte @@ -79,9 +79,9 @@ const submitHandler = async () => { loading = true; - if (!ollama && (!url || !key)) { + if (!ollama && !url) { loading = false; - toast.error('URL and Key are required'); + toast.error('URL is required'); return; } @@ -223,7 +223,7 @@ className="w-full text-sm bg-transparent placeholder:text-gray-300 dark:placeholder:text-gray-700 outline-hidden" bind:value={key} placeholder={$i18n.t('API Key')} - required={!ollama} + required={false} />