rollback to previous code (#4538)
This commit is contained in:
parent
e2d6ef72ca
commit
35d3eb5b27
1 changed files with 1 additions and 5 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue