Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: sync email field value into AntD Form after credentials load

yuneng-jiang2bc6dc5cad4c
diff --git a/ui/litellm-dashboard/src/app/onboarding/OnboardingForm.tsx b/ui/litellm-dashboard/src/app/onboarding/OnboardingForm.tsx
index 406147c82ce..3adb30c601d 100644
--- a/ui/litellm-dashboard/src/app/onboarding/OnboardingForm.tsx
+++ b/ui/litellm-dashboard/src/app/onboarding/OnboardingForm.tsx
@@ -31,6 +31,10 @@ export function OnboardingForm({ variant }: OnboardingFormProps) {
const accessToken: string | null = decoded?.key ?? null;
const jwtToken: string | null = credentialsData?.token ?? null;
+ React.useEffect(() => {
+ if (userEmail) form.setFieldValue("user_email", userEmail);
+ }, [userEmail, form]);
+
const handleSubmit = (formValues: { password: string }) => {
if (!accessToken || !jwtToken || !userId || !inviteId) return;
@@ -108,7 +112,7 @@ export function OnboardingForm({ variant }: OnboardingFormProps) {
<Form className="mt-10 mb-5" layout="vertical" form={form} onFinish={handleSubmit}>
<Form.Item label="Email Address" name="user_email">
- <Input type="email" disabled value={userEmail} />
+ <Input type="email" disabled />
</Form.Item>
<Form.Item