Fix required getting toggled on when creating new UP attribute. (#20735)

Fixes #20536
This commit is contained in:
Stan Silvert 2023-06-02 16:12:47 -04:00 committed by GitHub
parent 6ef73892a1
commit b63fccb062
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,