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