mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 04:14:57 +00:00
fix(websearch): narrow provider key summary access
This commit is contained in:
1 parent
a3ca496fa8
commit
d883951c9e
1 file changed
+3
-3
@@ -702,11 +702,11 @@ export default function WebSearchSection() {
|
|||||||
API Key
|
API Key
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-sm text-foreground/90">
|
<p className="mt-1 text-sm text-foreground/90">
|
||||||
{getApiKeySummary(config?.apiKeys?.[provider.id])}
|
{getApiKeySummary(config?.apiKeys?.[apiKeyProviderId])}
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs text-muted-foreground">
|
<p className="mt-1 text-xs text-muted-foreground">
|
||||||
{config?.apiKeys?.[provider.id]?.maskedValue
|
{config?.apiKeys?.[apiKeyProviderId]?.maskedValue
|
||||||
? `${config.apiKeys[provider.id]?.envVar} ${config.apiKeys[provider.id]?.maskedValue}`
|
? `${config.apiKeys[apiKeyProviderId]?.envVar} ${config.apiKeys[apiKeyProviderId]?.maskedValue}`
|
||||||
: `Store ${provider.badge} here so the backend is ready immediately after you enable it.`}
|
: `Store ${provider.badge} here so the backend is ready immediately after you enable it.`}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user