web: People: Fixed reset empty filter
This commit is contained in:
parent
9a5b513607
commit
397dc64bb2
@ -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));
|
||||
};
|
||||
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user