From ba4a4c38eacef689a4f966e9bdce9faaeefc2f5c Mon Sep 17 00:00:00 2001 From: jesus Date: Fri, 18 Sep 2026 01:32:33 +0000 Subject: [PATCH] fix(ui): type budget window filter in team create form Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- ui/litellm-dashboard/src/components/Teams.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/litellm-dashboard/src/components/Teams.tsx b/ui/litellm-dashboard/src/components/Teams.tsx index e254256ea10..1188d7a6eb0 100644 --- a/ui/litellm-dashboard/src/components/Teams.tsx +++ b/ui/litellm-dashboard/src/components/Teams.tsx @@ -535,9 +535,9 @@ const Teams: React.FC = ({ 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 {