mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3053 Fix Switching between Team pages in System Console (#3183)
This commit is contained in:
@@ -145,7 +145,7 @@ export default class UserList extends React.Component {
|
||||
}
|
||||
|
||||
componentWillReceiveProps(newProps) {
|
||||
this.getTeamProfiles(newProps.team.id);
|
||||
this.getTeamProfiles(newProps.params.team);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
@@ -193,6 +193,9 @@ export default class UserItem extends React.Component {
|
||||
|
||||
const teamMember = this.props.teamMember;
|
||||
const user = this.props.user;
|
||||
if (!user || !teamMember) {
|
||||
return <div/>;
|
||||
}
|
||||
let currentRoles = (
|
||||
<FormattedMessage
|
||||
id='admin.user_item.member'
|
||||
|
||||
Reference in New Issue
Block a user