mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
fix(ui): type budget window filter in team create form
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
cadc72eddf
commit
ba4a4c38ea
1 changed files with 3 additions and 3 deletions
|
|
@ -535,9 +535,9 @@ const Teams: React.FC<TeamProps> = ({ accessToken, userID, userRole, premiumUser
|
|||
formValues.model_max_budget = modelMaxBudget;
|
||||
}
|
||||
|
||||
const validWindows = (formValues.budget_limits ?? []).filter(
|
||||
(window) => window.budget_duration && window.max_budget !== null && window.max_budget !== undefined,
|
||||
);
|
||||
const validWindows = (
|
||||
(formValues.budget_limits ?? []) as { budget_duration: string; max_budget: number | null }[]
|
||||
).filter((window) => window.budget_duration && window.max_budget !== null && window.max_budget !== undefined);
|
||||
if (validWindows.length > 0) {
|
||||
formValues.budget_limits = validWindows;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue