rollback to previous code (#4538)

This commit is contained in:
Sósthenes Neto 2023-03-05 14:00:41 -03:00 committed by GitHub
parent e2d6ef72ca
commit 35d3eb5b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 });