Ignore pagination when loading group data (#4644)
This commit is contained in:
parent
48f1875cf1
commit
581e6ba12a
2 changed files with 3 additions and 3 deletions
|
|
@ -616,7 +616,7 @@ function loadGroupData() {
|
|||
} else {
|
||||
const [getAllGroupsAssociatedToChannelsInTeam, getGroups] = await Promise.all([ //eslint-disable-line no-await-in-loop
|
||||
Client4.getAllGroupsAssociatedToChannelsInTeam(team.id, true),
|
||||
Client4.getGroups(true),
|
||||
Client4.getGroups(true, 0, 0),
|
||||
]);
|
||||
|
||||
if (getAllGroupsAssociatedToChannelsInTeam.groups) {
|
||||
|
|
|
|||
|
|
@ -2850,9 +2850,9 @@ export default class Client4 {
|
|||
);
|
||||
};
|
||||
|
||||
getGroups = async (filterAllowReference = false) => {
|
||||
getGroups = async (filterAllowReference = false, page = 0, perPage = PER_PAGE_DEFAULT) => {
|
||||
return this.doFetch(
|
||||
`${this.getBaseRoute()}/groups${buildQueryString({filter_allow_reference: filterAllowReference})}`,
|
||||
`${this.getBaseRoute()}/groups${buildQueryString({filter_allow_reference: filterAllowReference, page, per_page: perPage})}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue