Web:Client:Accounts: fix filter selection after reload page
This commit is contained in:
parent
1292cc6712
commit
24aa891d20
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user