mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Fix user save bug with password field not clearing
This commit is contained in:
parent
2f998ff9d8
commit
f9f9125532
1 changed files with 5 additions and 1 deletions
|
|
@ -30,7 +30,11 @@ export function UserEditForm({ userId, onSave }: { userId: string; onSave?: () =
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Form onSubmit={handleSubmit} error={getMessage(error?.code)} values={user}>
|
<Form
|
||||||
|
onSubmit={handleSubmit}
|
||||||
|
error={getMessage(error?.code)}
|
||||||
|
values={{ ...user, password: '' }}
|
||||||
|
>
|
||||||
<FormField name="username" label={formatMessage(labels.username)}>
|
<FormField name="username" label={formatMessage(labels.username)}>
|
||||||
<TextField data-test="input-username" />
|
<TextField data-test="input-username" />
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue