Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(ui): fix TypeScript error - publicPage === true in narrowed false context

Ishaan Jaffer665306b4f022
diff --git a/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx b/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx
index 0be6919c1fa..39695c1348b 100644
--- a/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx
+++ b/ui/litellm-dashboard/src/components/AIHub/ModelHubTable.tsx
@@ -534,7 +534,7 @@ const ModelHubTable: React.FC<ModelHubTableProps> = ({ accessToken, publicPage,
accessToken={accessToken}
publicPage={publicPage}
onPublishSuccess={async () => {
- const response = await getClaudeCodePluginsList(accessToken || "", publicPage === true);
+ const response = await getClaudeCodePluginsList(accessToken || "", publicPage);
setSkillHubData(response.plugins);
}}
/>