fixed removing attributes (#22693)
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
65d9099e86
commit
35c3b409d5
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ const EditUserForm = ({ user, bruteForced, refresh }: EditUserFormProps) => {
|
||||||
const attributes =
|
const attributes =
|
||||||
"key" in (formUser.attributes?.[0] || [])
|
"key" in (formUser.attributes?.[0] || [])
|
||||||
? keyValueToArray(formUser.attributes as KeyValueType[])
|
? keyValueToArray(formUser.attributes as KeyValueType[])
|
||||||
: user.attributes;
|
: [];
|
||||||
try {
|
try {
|
||||||
await adminClient.users.update(
|
await adminClient.users.update(
|
||||||
{ id: user.id! },
|
{ id: user.id! },
|
||||||
|
|
Loading…
Reference in a new issue