summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-09 15:51:36 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-09 15:51:36 -0500
commita31f7c9a75538757a9ef7837491a5c9470cd2c35 (patch)
treefaa220ad18b854f38cf1a58f19b386cacf1083c6 /web/react/components
parente343e36c7096cf62d6d6a655ceb18187f68d1aed (diff)
downloadchat-a31f7c9a75538757a9ef7837491a5c9470cd2c35.tar.gz
chat-a31f7c9a75538757a9ef7837491a5c9470cd2c35.tar.bz2
chat-a31f7c9a75538757a9ef7837491a5c9470cd2c35.zip
Prevent the admin console from switching to a team that is being removed from the sidebar
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/admin_console/admin_sidebar.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/admin_console/admin_sidebar.jsx b/web/react/components/admin_console/admin_sidebar.jsx
index eadd8d412..795b19eec 100644
--- a/web/react/components/admin_console/admin_sidebar.jsx
+++ b/web/react/components/admin_console/admin_sidebar.jsx
@@ -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);