fix(websearch): narrow provider key summary access

This commit is contained in:
Tam Nhu Tran committed 2026-03-27 13:25:26 -04:00
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>