From b4d28fe205e9bfb8d2d67526855f105eec4dfe4e Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 9 May 2016 03:17:42 -0400
Subject: Minor fix to refresh profiles in user list of system console (#2915)

---
 webapp/components/admin_console/team_users.jsx | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

(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 e41747737..00aa1a832 100644
--- a/webapp/components/admin_console/team_users.jsx
+++ b/webapp/components/admin_console/team_users.jsx
@@ -78,20 +78,13 @@ export default class UserList extends React.Component {
                 });
 
                 this.setState({
-                    teamId: this.state.teamId,
-                    users: memberList,
-                    serverError: this.state.serverError,
-                    showPasswordModal: this.state.showPasswordModal,
-                    user: this.state.user
+                    users: memberList
                 });
             },
             (err) => {
                 this.setState({
-                    teamId: this.state.teamId,
                     users: null,
-                    serverError: err.message,
-                    showPasswordModal: this.state.showPasswordModal,
-                    user: this.state.user
+                    serverError: err.message
                 });
             }
         );
@@ -99,9 +92,6 @@ export default class UserList extends React.Component {
 
     doPasswordReset(user) {
         this.setState({
-            teamId: this.state.teamId,
-            users: this.state.users,
-            serverError: this.state.serverError,
             showPasswordModal: true,
             user
         });
@@ -109,19 +99,14 @@ export default class UserList extends React.Component {
 
     doPasswordResetDismiss() {
         this.setState({
-            teamId: this.state.teamId,
-            users: this.state.users,
-            serverError: this.state.serverError,
             showPasswordModal: false,
             user: null
         });
     }
 
     doPasswordResetSubmit() {
+        this.getCurrentTeamProfiles();
         this.setState({
-            teamId: this.state.teamId,
-            users: this.state.users,
-            serverError: this.state.serverError,
             showPasswordModal: false,
             user: null
         });
-- 
cgit v1.2.3-1-g7c22

