From d2df385f41e5cba47c5138ce1b0c8458bebd45e1 Mon Sep 17 00:00:00 2001
From: Corey Hulen <corey@hulen.com>
Date: Wed, 13 Jul 2016 03:27:31 -0800
Subject: PLT-3618 fixing error when team member removed on system console
 (#3569)

---
 webapp/components/admin_console/team_users.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/admin_console/team_users.jsx')

diff --git a/webapp/components/admin_console/team_users.jsx b/webapp/components/admin_console/team_users.jsx
index 3ec375627..f82c20a86 100644
--- a/webapp/components/admin_console/team_users.jsx
+++ b/webapp/components/admin_console/team_users.jsx
@@ -186,7 +186,7 @@ export default class UserList extends React.Component {
         var memberList = this.state.users.map((user) => {
             var teamMember = this.getTeamMemberForUser(user.id);
 
-            if (teamMember.delete_at > 0) {
+            if (!teamMember || teamMember.delete_at > 0) {
                 return null;
             }
 
-- 
cgit v1.2.3-1-g7c22

