mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
remove channel members dropdown when its menu is empty (#6713)
This commit is contained in:
committed by
Corey Hulen
parent
1e84e931ec
commit
5cd718b7d9
@@ -189,6 +189,12 @@ export default class ChannelMembersDropdown extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
if (!makeChannelMember || !makeChannelAdmin || !removeFromChannel) {
|
||||
return (
|
||||
<div/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='dropdown member-drop'>
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user