Web:Client:Accounts: fix filter selection after reload page

This commit is contained in:
TimofeyBoyko 2022-11-03 12:33:14 +05:00
parent 1292cc6712
commit 24aa891d20
2 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const PureHome = ({
setIsRefresh(true);
const newFilter = Filter.getFilter(location);
//console.log("PEOPLE URL changed", pathname, newFilter);
getUsersList(newFilter).finally(() => {
getUsersList(newFilter, true).finally(() => {
setFirstLoad(false);
setIsLoading(false);
setIsRefresh(false);

View File

@ -41,6 +41,8 @@ class UsersStore {
const res = await api.people.getUserList(filterData);
filterData.total = res.total;
console.log(filterData, updateFilter);
if (updateFilter) {
this.peopleStore.filterStore.setFilterParams(filterData);
}