From 5cd718b7d9efbffef62e405088bba6803b5c6871 Mon Sep 17 00:00:00 2001
From: Saturnino Abril <saturnino.abril@gmail.com>
Date: Thu, 22 Jun 2017 10:05:17 +0800
Subject: remove channel members dropdown when its menu is empty (#6713)

---
 .../channel_members_dropdown/channel_members_dropdown.jsx           | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'webapp/components/channel_members_dropdown/channel_members_dropdown.jsx')

diff --git a/webapp/components/channel_members_dropdown/channel_members_dropdown.jsx b/webapp/components/channel_members_dropdown/channel_members_dropdown.jsx
index 86efc8367..1deabb0d3 100644
--- a/webapp/components/channel_members_dropdown/channel_members_dropdown.jsx
+++ b/webapp/components/channel_members_dropdown/channel_members_dropdown.jsx
@@ -189,6 +189,12 @@ export default class ChannelMembersDropdown extends React.Component {
                 );
             }
 
+            if (!makeChannelMember || !makeChannelAdmin || !removeFromChannel) {
+                return (
+                    <div/>
+                );
+            }
+
             return (
                 <div className='dropdown member-drop'>
                     <a
-- 
cgit v1.2.3-1-g7c22

