mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix: reset router settings state on cancel to prevent stale data
This commit is contained in:
parent
6fd7a3ec76
commit
a449cf801f
1 changed files with 1 additions and 1 deletions
|
|
@ -1308,7 +1308,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
|
|||
|
||||
<div className="sticky z-10 bg-white p-4 pr-0 border-t border-gray-200 bottom-[-1.5rem] inset-x-[-1.5rem]">
|
||||
<div className="flex justify-end items-center gap-2">
|
||||
<Button onClick={() => setIsEditing(false)} disabled={isTeamSaving}>
|
||||
<Button onClick={() => { setIsEditing(false); setRouterSettings(null); }} disabled={isTeamSaving}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button icon={<SaveOutlined className="h-4 w-4" />} type="primary" htmlType="submit" loading={isTeamSaving}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue