mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(auto_router): reset inline validation errors when switching router type
This commit is contained in:
parent
0de308a5b8
commit
3464b5e7df
1 changed files with 8 additions and 1 deletions
|
|
@ -238,7 +238,14 @@ const AddAutoRouterTab: React.FC<AddAutoRouterTabProps> = ({ form, handleOk, acc
|
|||
<Card className="mb-4">
|
||||
<div className="mb-4">
|
||||
<Text className="text-sm font-medium mb-2 block">Router Type</Text>
|
||||
<Radio.Group value={routerType} onChange={(e) => setRouterType(e.target.value)} className="w-full">
|
||||
<Radio.Group
|
||||
value={routerType}
|
||||
onChange={(e) => {
|
||||
setRouterType(e.target.value);
|
||||
setShowValidationErrors(false);
|
||||
}}
|
||||
className="w-full"
|
||||
>
|
||||
<Space direction="vertical" className="w-full">
|
||||
<Radio value="recommended" className="w-full">
|
||||
<div className="flex items-center gap-2">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue