web: People: Fixed fetching profile after avatar saving action at profile view page
This commit is contained in:
parent
793a008a49
commit
decd932548
@ -143,7 +143,7 @@ class SectionHeaderContent extends React.PureComponent {
|
|||||||
this.setState(stateCopy);
|
this.setState(stateCopy);
|
||||||
})
|
})
|
||||||
.catch((error) => toastr.error(error))
|
.catch((error) => toastr.error(error))
|
||||||
.then(() => fetchProfile(this.state.profile.id));
|
.then(() => this.props.fetchProfile(this.state.profile.id));
|
||||||
} else {
|
} else {
|
||||||
deleteAvatar(this.state.profile.id)
|
deleteAvatar(this.state.profile.id)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user