From 41969ae66c2d140b004e6dbced597749f34aedf8 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Tue, 18 Jul 2017 06:27:29 +0800 Subject: [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 --- webapp/components/add_users_to_team/add_users_to_team.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'webapp/components/add_users_to_team') 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 (