summaryrefslogtreecommitdiffstats
path: root/webapp/components/add_users_to_team/add_users_to_team.jsx
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-07-18 06:27:29 +0800
committerGitHub <noreply@github.com>2017-07-18 06:27:29 +0800
commit41969ae66c2d140b004e6dbced597749f34aedf8 (patch)
treeea4fc4e53ec9c356e6a7031f516ca13b667b94b2 /webapp/components/add_users_to_team/add_users_to_team.jsx
parent3e090162aaac7cbc75900635b800d96e9e9050e3 (diff)
downloadchat-41969ae66c2d140b004e6dbced597749f34aedf8.tar.gz
chat-41969ae66c2d140b004e6dbced597749f34aedf8.tar.bz2
chat-41969ae66c2d140b004e6dbced597749f34aedf8.zip
[PLT-7141] Fix deactivated user from appearing in channel view members list filtering (#6957)
* fix deactivated user from appearing in channel view members list filtering * add deactivated user filters to channels, teams and DM
Diffstat (limited to 'webapp/components/add_users_to_team/add_users_to_team.jsx')
-rw-r--r--webapp/components/add_users_to_team/add_users_to_team.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/add_users_to_team/add_users_to_team.jsx b/webapp/components/add_users_to_team/add_users_to_team.jsx
index 19e0d674b..e3eb8477b 100644
--- a/webapp/components/add_users_to_team/add_users_to_team.jsx
+++ b/webapp/components/add_users_to_team/add_users_to_team.jsx
@@ -215,6 +215,11 @@ export default class AddUsersToTeam extends React.Component {
/>
);
+ let users = [];
+ if (this.state.users) {
+ users = this.state.users.filter((user) => user.delete_at === 0);
+ }
+
return (
<Modal
dialogClassName={'more-modal more-direct-channels'}
@@ -238,7 +243,7 @@ export default class AddUsersToTeam extends React.Component {
<Modal.Body>
<MultiSelect
key='addUsersToTeamKey'
- options={this.state.users}
+ options={users}
optionRenderer={this.renderOption}
values={this.state.values}
valueRenderer={this.renderValue}