diff options
Diffstat (limited to 'webapp/components/more_direct_channels/more_direct_channels.jsx')
-rw-r--r-- | webapp/components/more_direct_channels/more_direct_channels.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/more_direct_channels/more_direct_channels.jsx b/webapp/components/more_direct_channels/more_direct_channels.jsx index 705c1ac95..0e50eca72 100644 --- a/webapp/components/more_direct_channels/more_direct_channels.jsx +++ b/webapp/components/more_direct_channels/more_direct_channels.jsx @@ -292,6 +292,11 @@ export default class MoreDirectChannels 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'} @@ -310,7 +315,7 @@ export default class MoreDirectChannels extends React.Component { <Modal.Body> <MultiSelect key='moreDirectChannelsList' - options={this.state.users} + options={users} optionRenderer={this.renderOption} values={this.state.values} valueRenderer={this.renderValue} |