From ddde9cdb6b14efa8380b9c63def89267a0fed3e9 Mon Sep 17 00:00:00 2001 From: tanjiro <56165694+NANDINI-star@users.noreply.github.com> Date: Fri, 13 Jun 2025 07:29:56 +0900 Subject: [PATCH] Fix default user settings (#11674) * rename schema to field_schema * minor * title added --- ui/litellm-dashboard/src/components/SSOSettings.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/litellm-dashboard/src/components/SSOSettings.tsx b/ui/litellm-dashboard/src/components/SSOSettings.tsx index 54066d52324..7a4502d6513 100644 --- a/ui/litellm-dashboard/src/components/SSOSettings.tsx +++ b/ui/litellm-dashboard/src/components/SSOSettings.tsx @@ -253,13 +253,13 @@ const SSOSettings: React.FC = ({ accessToken, possibleUIRoles, // Dynamically render settings based on the schema const renderSettings = () => { - const { values, schema } = settings; + const { values, field_schema } = settings; - if (!schema || !schema.properties) { + if (!field_schema || !field_schema.properties) { return No schema information available; } - return Object.entries(schema.properties).map(([key, property]: [string, any]) => { + return Object.entries(field_schema.properties).map(([key, property]: [string, any]) => { const value = values[key]; const displayName = key.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase()); @@ -286,7 +286,8 @@ const SSOSettings: React.FC = ({ accessToken, possibleUIRoles, return ( -
+
+ Default User Settings {!loading && settings && ( isEditing ? (
@@ -317,8 +318,8 @@ const SSOSettings: React.FC = ({ accessToken, possibleUIRoles, )}
- {settings?.schema?.description && ( - {settings.schema.description} + {settings?.field_schema?.description && ( + {settings.field_schema.description} )}