mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-14 20:55:15 +02:00
chore: ran linting
This commit is contained in:
parent
1c72f4174b
commit
9eefcd23b7
1 changed files with 6 additions and 2 deletions
|
|
@ -33,10 +33,14 @@ export function DefaultConnectForm({
|
|||
const isApiKeyOptional = OPTIONAL_API_KEY_PROVIDERS.has(provider);
|
||||
const hint = baseUrlHint(provider);
|
||||
const apiKeyValue = apiKey.trim();
|
||||
const canSubmit = !(baseUrlRequired && !baseUrl.trim()) && (isApiKeyOptional || Boolean(apiKeyValue));
|
||||
const canSubmit =
|
||||
!(baseUrlRequired && !baseUrl.trim()) && (isApiKeyOptional || Boolean(apiKeyValue));
|
||||
|
||||
useEffect(() => {
|
||||
onDraftChange({ base_url: baseUrl || null, api_key: apiKeyValue || null, extra: {} }, canSubmit);
|
||||
onDraftChange(
|
||||
{ base_url: baseUrl || null, api_key: apiKeyValue || null, extra: {} },
|
||||
canSubmit
|
||||
);
|
||||
}, [apiKeyValue, baseUrl, canSubmit, onDraftChange]);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue