diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-02-09 15:51:36 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-02-09 15:51:36 -0500 |
commit | a31f7c9a75538757a9ef7837491a5c9470cd2c35 (patch) | |
tree | faa220ad18b854f38cf1a58f19b386cacf1083c6 /web/react/components/admin_console/admin_sidebar.jsx | |
parent | e343e36c7096cf62d6d6a655ceb18187f68d1aed (diff) | |
download | chat-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/admin_console/admin_sidebar.jsx')
-rw-r--r-- | web/react/components/admin_console/admin_sidebar.jsx | 1 |
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); |