Client: GroupsStore: Fix inside group next page loading

This commit is contained in:
Aleksandr Lushkin 2024-08-19 12:12:53 +02:00
parent d7497cdab4
commit 2fa1026f6b

View File

@ -675,10 +675,12 @@ class GroupsStore {
}
if (getIsInsideGroup() && this.currentGroup?.id === groupId) {
const filter = this.insideGroupFilter.clone();
this.setCurrentGroup(res);
const members = await api.people.getUserList(
this.insideGroupFilter.clone(),
);
const members = await api.people.getUserList(filter);
filter.total = members.total;
this.setInsideGroupFilter(filter);
this.peopleStore.usersStore.setUsers(members.items);
this.setInsideGroupTempTitle(res.name);
}