mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Prevent the admin console from switching to a team that is being removed from the sidebar
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user