Web: People: fixed reset filter after switching from profile
This commit is contained in:
parent
9d7f6265e7
commit
056c288fae
@ -400,8 +400,15 @@ class SectionHeaderContent extends React.PureComponent {
|
||||
onClickBack = () => {
|
||||
const { filter, setFilter, history, resetProfile } = this.props;
|
||||
resetProfile();
|
||||
const backUrl = combineUrl(AppServerConfig.proxyURL, config.homepage);
|
||||
history.push(backUrl);
|
||||
|
||||
const url = filter.toUrlParams();
|
||||
const backUrl = combineUrl(
|
||||
AppServerConfig.proxyURL,
|
||||
config.homepage,
|
||||
`filter?/${url}`
|
||||
);
|
||||
|
||||
history.push(backUrl, url);
|
||||
setFilter(filter);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user