From c8468b71c854f814afc555d1591898d6de98fac8 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 3 Apr 2025 22:32:56 -0700 Subject: [PATCH] fix linting ui --- ui/litellm-dashboard/src/components/chat_ui.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsx index 5b23ec11e3c..7f2b0e1a263 100644 --- a/ui/litellm-dashboard/src/components/chat_ui.tsx +++ b/ui/litellm-dashboard/src/components/chat_ui.tsx @@ -86,6 +86,10 @@ const ChatUI: React.FC = ({ // Fetch model info and set the default selected model const loadModels = async () => { try { + if (!userApiKey) { + console.log("userApiKey is missing"); + return; + } const uniqueModels = await fetchAvailableModels( userApiKey, );