Web: People: Fixed navigation (after saving profile changes did not work)

This commit is contained in:
Alexey Kostenko 2020-10-16 07:17:58 +03:00
parent 11c2efde81
commit 7230d2a48e

View File

@ -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}`
);