PLT-3053 Fix Switching between Team pages in System Console (#3183)

This commit is contained in:
enahum
2016-05-31 17:10:57 -03:00
committed by Joram Wilander
parent 0d6bf6756b
commit 268bccdf49
2 changed files with 4 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ export default class UserList extends React.Component {
}
componentWillReceiveProps(newProps) {
this.getTeamProfiles(newProps.team.id);
this.getTeamProfiles(newProps.params.team);
}
render() {

View File

@@ -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'