Skip to content

Commit

Permalink
(chore) add the same fix to internal admin type
Browse files Browse the repository at this point in the history
  • Loading branch information
Achintha Isuru committed Nov 20, 2023
1 parent a0ff3b2 commit 7289f83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/console/src/features/users/components/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,12 @@ export const UserProfile: FunctionComponent<UserProfilePropsInterface> = (
} else {
if (schemaNames.length === 1) {
if (schema.extended) {
const schemaId: string = schema?.schemaId
? schema.schemaId
: ProfileConstants.SCIM2_ENT_USER_SCHEMA;

opValue = {
[ProfileConstants.SCIM2_WSO2_USER_SCHEMA]: {
[schemaId]: {
[schemaNames[0]]: schema.type.toUpperCase() === "BOOLEAN" ?
!!values.get(schema.name)?.includes(schema.name) :
values.get(schemaNames[0])
Expand Down

0 comments on commit 7289f83

Please sign in to comment.