Unverified Commit 499b6dfd authored by Farhan Munshi's avatar Farhan Munshi Committed by GitHub
Browse files

[MM-26972] Skip pagination to allow loading all groups on needs team (#6068) (#6073)

* Ignore pagination for get groups on needs team

* Fix type

* Update redux
parent 1c350b62
......@@ -57,7 +57,7 @@ type Props = {
getAllGroupsAssociatedToChannelsInTeam: (teamId: string, filterAllowReference: boolean) => Promise<{}>;
getAllGroupsAssociatedToTeam: (teamId: string, filterAllowReference: boolean) => Promise<{}>;
getGroupsByUserId: (userID: string) => Promise<{}>;
getGroups: (filterAllowReference: boolean) => Promise<{}>;
getGroups: (filterAllowReference: boolean, page: number, perPage: number) => Promise<{}>;
};
mfaRequired: boolean;
......@@ -248,7 +248,7 @@ export default class NeedsTeam extends React.PureComponent<Props, State> {
if (team.group_constrained) {
this.props.actions.getAllGroupsAssociatedToTeam(team.id, true);
} else {
this.props.actions.getGroups(true);
this.props.actions.getGroups(true, 0, 0);
}
}
......
......@@ -18118,8 +18118,8 @@
"integrity": "sha512-6qE4B9deFBIa9YSpOc9O0Sgc43zTeVYbgDT5veRKSlB2+ZuHNoVVxA1L/ckMUayV9Ay9y7Z/SZCLcGteW9i7bg=="
},
"mattermost-redux": {
"version": "github:mattermost/mattermost-redux#40fd505dcc0783c5af479642beaa566fbe5515ce",
"from": "github:mattermost/mattermost-redux#40fd505dcc0783c5af479642beaa566fbe5515ce",
"version": "github:mattermost/mattermost-redux#a37879dbcf45c17560e6e8f9d98ff4277b485435",
"from": "github:mattermost/mattermost-redux#a37879dbcf45c17560e6e8f9d98ff4277b485435",
"requires": {
"core-js": "3.6.4",
"form-data": "3.0.0",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment