mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
minor optimization; following jwilander's recommendation
This commit is contained in:
@@ -194,15 +194,15 @@ export default class ChannelHeader extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
const popoverListMembers = [];
|
||||
let popoverListMembers;
|
||||
if (!isDirect) {
|
||||
popoverListMembers.push(
|
||||
popoverListMembers = (
|
||||
<PopoverListMembers
|
||||
members={this.state.users}
|
||||
memberCount={this.state.userCount}
|
||||
channelId={channel.id}
|
||||
/>
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
const dropdownContents = [];
|
||||
|
||||
Reference in New Issue
Block a user