Commit 66ee4784 authored by Jesús Espino's avatar Jesús Espino Committed by Harrison Healey

MM-13266: Doing the filter of GMs properly on "more direct channels" modal (#2127)

parent d4e5c39a
......@@ -75,7 +75,10 @@ function mapStateToProps(state, ownProps) {
}
const filterGroupChannels = memoizeResult((channels, term) => {
return channels.filter((channel) => filterProfilesMatchingTerm(channel.profiles, term));
return channels.filter((channel) => {
const matches = filterProfilesMatchingTerm(channel.profiles, term);
return matches.length > 0;
});
});
function mapDispatchToProps(dispatch) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment