diff --git a/apps/admin-ui/src/user/UserAttributes.tsx b/apps/admin-ui/src/user/UserAttributes.tsx index d4e0494b72..d9a88e41dc 100644 --- a/apps/admin-ui/src/user/UserAttributes.tsx +++ b/apps/admin-ui/src/user/UserAttributes.tsx @@ -47,11 +47,7 @@ export const UserAttributes = ({ user: defaultUser }: UserAttributesProps) => { const save = async (attributeForm: AttributeForm) => { try { - const attributes = Object.assign( - {}, - user.attributes || {}, - keyValueToArray(attributeForm.attributes!) - ); + const attributes = keyValueToArray(attributeForm.attributes!); await adminClient.users.update({ id: user.id! }, { ...user, attributes }); setUser({ ...user, attributes });