From b63fccb062eeded3310439242c5693dd4e120d90 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Fri, 2 Jun 2023 16:12:47 -0400 Subject: [PATCH] Fix required getting toggled on when creating new UP attribute. (#20735) Fixes #20536 --- js/apps/admin-ui/src/realm-settings/NewAttributeSettings.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,