remove channel members dropdown when its menu is empty (#6713)

This commit is contained in:
Saturnino Abril
2017-06-22 10:05:17 +08:00
committed by Corey Hulen
parent 1e84e931ec
commit 5cd718b7d9

View File

@@ -189,6 +189,12 @@ export default class ChannelMembersDropdown extends React.Component {
);
}
if (!makeChannelMember || !makeChannelAdmin || !removeFromChannel) {
return (
<div/>
);
}
return (
<div className='dropdown member-drop'>
<a