Prevent the admin console from switching to a team that is being removed from the sidebar

This commit is contained in:
hmhealey
2016-02-09 15:51:36 -05:00
parent e343e36c70
commit a31f7c9a75

View File

@@ -50,6 +50,7 @@ export default class AdminSidebar extends React.Component {
removeTeam(teamId, e) {
e.preventDefault();
e.stopPropagation();
Reflect.deleteProperty(this.props.selectedTeams, teamId);
this.props.removeSelectedTeam(teamId);