mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Don't delete confirmed password from formik object
If the save fails, the form will attempt to reload the deleted value.
This commit is contained in:
parent
d941f11ccd
commit
b56812018a
@ -145,8 +145,8 @@ function UserForm({ user, handleCancel, handleSubmit, submitError, i18n }) {
|
||||
if (!values.password || values.password === '') {
|
||||
delete values.password;
|
||||
}
|
||||
delete values.confirm_password;
|
||||
handleSubmit(values);
|
||||
const { confirm_password, ...submitValues } = values;
|
||||
handleSubmit(submitValues);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user