mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 11:09:22 -02: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 === '') {
|
if (!values.password || values.password === '') {
|
||||||
delete values.password;
|
delete values.password;
|
||||||
}
|
}
|
||||||
delete values.confirm_password;
|
const { confirm_password, ...submitValues } = values;
|
||||||
handleSubmit(values);
|
handleSubmit(submitValues);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user