diff --git a/js/apps/admin-ui/src/realm-settings/NewAttributeSettings.tsx b/js/apps/admin-ui/src/realm-settings/NewAttributeSettings.tsx index 05cef90da4..47c8e47449 100644 --- a/js/apps/admin-ui/src/realm-settings/NewAttributeSettings.tsx +++ b/js/apps/admin-ui/src/realm-settings/NewAttributeSettings.tsx @@ -213,7 +213,9 @@ export default function NewAttributeSettings() { { name: profileConfig.name, displayName: profileConfig.displayName!, - required: profileConfig.isRequired ? profileConfig.required : {}, + required: profileConfig.isRequired + ? profileConfig.required + : undefined, selector: profileConfig.selector, permissions: profileConfig.permissions!, annotations,