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) => {
|
const save = async (attributeForm: AttributeForm) => {
|
||||||
try {
|
try {
|
||||||
const attributes = Object.assign(
|
const attributes = keyValueToArray(attributeForm.attributes!);
|
||||||
{},
|
|
||||||
user.attributes || {},
|
|
||||||
keyValueToArray(attributeForm.attributes!)
|
|
||||||
);
|
|
||||||
await adminClient.users.update({ id: user.id! }, { ...user, attributes });
|
await adminClient.users.update({ id: user.id! }, { ...user, attributes });
|
||||||
|
|
||||||
setUser({ ...user, attributes });
|
setUser({ ...user, attributes });
|
||||||
|
|
Loading…
Reference in a new issue