fix member count (#24233)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f64e6174e2
Коммит
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});
|
||||
|
||||
Ссылка в новой задаче
Block a user