From f5a241057b6e686d670617e214618f387d882cc6 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Thu, 31 Oct 2024 16:29:27 +0530 Subject: [PATCH 1/2] Fix not being able to update user profile --- features/admin.users.v1/components/user-profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/admin.users.v1/components/user-profile.tsx b/features/admin.users.v1/components/user-profile.tsx index 5e6a09dc321..ddf1d9bf96c 100644 --- a/features/admin.users.v1/components/user-profile.tsx +++ b/features/admin.users.v1/components/user-profile.tsx @@ -815,7 +815,7 @@ export const UserProfile: FunctionComponent = ( } else if (schemaNames[0] === UserManagementConstants.SCIM2_SCHEMA_DICTIONARY .get("NAME")) { - if (!values.get(schema.name) || values.get(schema.name) === "") { + if (values.get(schema.name) || values.get(schema.name) === "") { opValue = { name: { [schemaNames[1]]: values.get(schema.name) } }; From f9090c4fa6aa5f701aee3a23fc929fccdd4c5de8 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Thu, 31 Oct 2024 16:29:50 +0530 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=8B=20Add=20changeset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/eight-ties-drop.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eight-ties-drop.md diff --git a/.changeset/eight-ties-drop.md b/.changeset/eight-ties-drop.md new file mode 100644 index 00000000000..52ed3b5a327 --- /dev/null +++ b/.changeset/eight-ties-drop.md @@ -0,0 +1,5 @@ +--- +"@wso2is/admin.users.v1": patch +--- + +Fix not being able to update user profile