Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tools
mattermost
mattermost-webapp
Commits
66ee4784
Commit
66ee4784
authored
Dec 04, 2018
by
Jesús Espino
Committed by
Harrison Healey
Dec 04, 2018
Browse files
MM-13266: Doing the filter of GMs properly on "more direct channels" modal (#2127)
parent
d4e5c39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/more_direct_channels/index.js
View file @
66ee4784
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment