mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user