mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
The key edit form read react-hook-form's dirtyFields only inside the submit handler. formState is a proxy that only tracks what the component reads while rendering, so on the first save of an edit session that read returned the initial empty object. A team admin editing a member's key then sent only the key id to /key/update, got a 200 and a "Key updated successfully" toast, and nothing changed: a max_budget edit was silently dropped, and a rename went through as an empty update instead of the "team admins can only change budget fields" error. Read dirtyFields during render so the form subscribes to it and the submit handler sees the fields the user actually changed. |
||
|---|---|---|
| .. | ||
| docker-entrypoint.d | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||