web: People: Fixed fetching profile after avatar saving action at profile view page

This commit is contained in:
Ilya Oleshko 2019-11-07 09:50:52 +03:00
parent 793a008a49
commit decd932548

View File

@ -143,7 +143,7 @@ class SectionHeaderContent extends React.PureComponent {
this.setState(stateCopy);
})
.catch((error) => toastr.error(error))
.then(() => fetchProfile(this.state.profile.id));
.then(() => this.props.fetchProfile(this.state.profile.id));
} else {
deleteAvatar(this.state.profile.id)
.then((response) => {