fix member count (#24233)

This commit is contained in:
Sinan Sonmez (Chaush) 2023-08-15 22:41:20 +02:00 committed by GitHub
parent f64e6174e2
commit 39150bc16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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});