From a31f7c9a75538757a9ef7837491a5c9470cd2c35 Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Tue, 9 Feb 2016 15:51:36 -0500
Subject: Prevent the admin console from switching to a team that is being
 removed from the sidebar

---
 web/react/components/admin_console/admin_sidebar.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'web/react/components/admin_console/admin_sidebar.jsx')

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);
 
-- 
cgit v1.2.3-1-g7c22

