mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
fix(ui): guard null voice selection from shadcn Select
This commit is contained in:
parent
d78a016bc5
commit
01d55b9d0f
1 changed files with 3 additions and 0 deletions
|
|
@ -1298,6 +1298,9 @@ const ChatUI: React.FC<ChatUIProps> = ({
|
|||
<ShadcnSelect
|
||||
value={selectedVoice}
|
||||
onValueChange={(value) => {
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
setSelectedVoice(value);
|
||||
sessionStorage.setItem("selectedVoice", value);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue