web: People: Fixed reset empty filter

This commit is contained in:
Alexey Safronov 2019-09-02 16:59:09 +03:00
parent 9a5b513607
commit 397dc64bb2
2 changed files with 4 additions and 2 deletions

View File

@ -419,7 +419,7 @@ class SectionBodyContent extends React.PureComponent {
};
onResetFilter = () => {
const { onLoading } = this.props;
const { onLoading, resetFilter } = this.props;
onLoading(true);
resetFilter().finally(() => onLoading(false));
};

View File

@ -148,6 +148,8 @@ export function resetFilter() {
const { people } = getState();
const { filter } = people;
return fetchPeople(filter);
const newFilter = filter.clone(true);
return fetchPeopleByFilter(dispatch, newFilter);
};
}