Unverified Commit 2fc6bcac authored by Farhan Munshi's avatar Farhan Munshi Committed by GitHub
Browse files

[MM-26219] Fix member count on add groups to channel / team modal (#5910) (#5991)

* Fix member count on add groups to channel / team modal
parent 8275a92c
......@@ -60,9 +60,9 @@ export default class AddGroupsToChannelModal extends React.PureComponent {
componentDidMount() {
Promise.all([
this.props.actions.getTeam(this.props.teamID),
this.props.actions.getAllGroupsAssociatedToTeam(this.props.teamID),
this.props.actions.getAllGroupsAssociatedToTeam(this.props.teamID, false, true),
this.props.actions.getGroupsNotAssociatedToChannel(this.props.currentChannelId, '', 0, GROUPS_PER_PAGE + 1, true),
this.props.actions.getAllGroupsAssociatedToChannel(this.props.currentChannelId),
this.props.actions.getAllGroupsAssociatedToChannel(this.props.currentChannelId, false, true),
]).then(() => {
this.setGroupsLoadingState(false);
});
......
......@@ -57,7 +57,7 @@ export default class AddGroupsToTeamModal extends React.PureComponent {
componentDidMount() {
Promise.all([
this.props.actions.getGroupsNotAssociatedToTeam(this.props.currentTeamId, '', 0, GROUPS_PER_PAGE + 1),
this.props.actions.getAllGroupsAssociatedToTeam(this.props.currentTeamId),
this.props.actions.getAllGroupsAssociatedToTeam(this.props.currentTeamId, false, true),
]).then(() => {
this.setGroupsLoadingState(false);
});
......
......@@ -18109,8 +18109,8 @@
"integrity": "sha512-6qE4B9deFBIa9YSpOc9O0Sgc43zTeVYbgDT5veRKSlB2+ZuHNoVVxA1L/ckMUayV9Ay9y7Z/SZCLcGteW9i7bg=="
},
"mattermost-redux": {
"version": "github:mattermost/mattermost-redux#477b0b8b2993286284ecb395df83c823f4a0d7a1",
"from": "github:mattermost/mattermost-redux#477b0b8b2993286284ecb395df83c823f4a0d7a1",
"version": "github:mattermost/mattermost-redux#d39679ad4df4d76b684dbfffffcd9737ec94ea92",
"from": "github:mattermost/mattermost-redux#d39679ad4df4d76b684dbfffffcd9737ec94ea92",
"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