Commit 8b3fab7d authored by George Goldberg's avatar George Goldberg

MM-13422: Fix manage teams modal usage in system console. (#2172)

* MM-13422: Fix manage teams modal usage in system console.

* Remove unnecessary async.
parent be875204
...@@ -101,6 +101,10 @@ export default class ManageTeamsModal extends React.Component { ...@@ -101,6 +101,10 @@ export default class ManageTeamsModal extends React.Component {
} }
} }
handleMemberChange = () => {
this.getTeamMembers(this.props.user.id);
};
renderContents = () => { renderContents = () => {
const {user} = this.props; const {user} = this.props;
const {teams, teamMembers} = this.state; const {teams, teamMembers} = this.state;
...@@ -141,7 +145,7 @@ export default class ManageTeamsModal extends React.Component { ...@@ -141,7 +145,7 @@ export default class ManageTeamsModal extends React.Component {
team={team} team={team}
teamMember={teamMember} teamMember={teamMember}
onError={this.handleError} onError={this.handleError}
onMemberChange={this.getTeamMembers} onMemberChange={this.handleMemberChange}
updateTeamMemberSchemeRoles={this.props.actions.updateTeamMemberSchemeRoles} updateTeamMemberSchemeRoles={this.props.actions.updateTeamMemberSchemeRoles}
handleRemoveUserFromTeam={this.handleRemoveUserFromTeam} handleRemoveUserFromTeam={this.handleRemoveUserFromTeam}
/> />
......
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