rename schema to field_schema (#11887)

This commit is contained in:
tanjiro 2025-06-20 01:29:37 +09:00 • committed by GitHub
parent b55e1daff9
commit 0a855ad728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,13 +223,13 @@ const TeamSSOSettings: React.FC<TeamSSOSettingsProps> = ({ accessToken, userID,
// 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 <Text>No schema information available</Text>;
}
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());
@ -292,8 +292,8 @@ const TeamSSOSettings: React.FC<TeamSSOSettingsProps> = ({ accessToken, userID,
These settings will be applied by default when creating new teams.
</Text>
{settings?.schema?.description && (
<Paragraph className="mb-4 mt-2">{settings.schema.description}</Paragraph>
{settings?.field_schema?.description && (
<Paragraph className="mb-4 mt-2">{settings.field_schema.description}</Paragraph>
)}
<Divider />