mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fix member count (#24233)
This commit is contained in:
parent
f64e6174e2
commit
39150bc16d
@ -197,6 +197,10 @@ export default class BrowseChannels extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
if (data) {
|
||||
const channelIDsForMemberCount = data.map((channel: Channel) => channel.id);
|
||||
if (channelIDsForMemberCount.length > 0) {
|
||||
this.props.actions.getChannelsMemberCount(channelIDsForMemberCount);
|
||||
}
|
||||
this.setSearchResults(data);
|
||||
} else {
|
||||
this.setState({searchedChannels: [], searching: false});
|
||||
|
Loading…
Reference in New Issue
Block a user