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 type

Ishaan Jaffb345db5011b5
diff --git a/ui/litellm-dashboard/src/components/view_key_table.tsx b/ui/litellm-dashboard/src/components/view_key_table.tsx
index 4f32388065d..0595e31fd63 100644
--- a/ui/litellm-dashboard/src/components/view_key_table.tsx
+++ b/ui/litellm-dashboard/src/components/view_key_table.tsx
@@ -762,6 +762,10 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
return;
}
+ if (selectedToken == null) {
+ return;
+ }
+
try {
const formValues = await regenerateForm.validateFields();
const response = await regenerateKeyCall(accessToken, selectedToken.token, formValues);