From 01d55b9d0fe03cdf1f2c2da56ce5483b465dce61 Mon Sep 17 00:00:00 2001 From: mubashir1osmani Date: Sat, 8 Aug 2026 12:07:36 -0700 Subject: [PATCH] fix(ui): guard null voice selection from shadcn Select --- .../app/(dashboard)/playground/components/chat_ui/ChatUI.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx b/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx index 32f9ff3395b..55bd214165a 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx @@ -1298,6 +1298,9 @@ const ChatUI: React.FC = ({ { + if (value == null) { + return; + } setSelectedVoice(value); sessionStorage.setItem("selectedVoice", value); }}