Web: People: Fixed navigation (after saving profile changes did not work)
This commit is contained in:
parent
11c2efde81
commit
7230d2a48e
@ -274,6 +274,7 @@ class UpdateUserForm extends React.Component {
|
||||
|
||||
handleSubmit() {
|
||||
if (!this.validate()) return false;
|
||||
const { setIsEditingForm } = this.props;
|
||||
|
||||
this.setState({ isLoading: true });
|
||||
|
||||
@ -282,6 +283,7 @@ class UpdateUserForm extends React.Component {
|
||||
.then((profile) => {
|
||||
this.props.updateProfileInUsers(profile);
|
||||
toastr.success(this.props.t("ChangesSavedSuccessfully"));
|
||||
setIsEditingForm(false);
|
||||
this.props.history.push(
|
||||
`${this.props.settings.homepage}/view/${profile.userName}`
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user