diff --git a/web/modals/threads/members/members-modal.react.js b/web/modals/threads/members/members-modal.react.js --- a/web/modals/threads/members/members-modal.react.js +++ b/web/modals/threads/members/members-modal.react.js @@ -86,15 +86,25 @@ ); }, [adminMembers, allMembers, tab, threadInfo]); - const threadMembersModalContent = React.useMemo( - () => ( + const threadMembersModalContent = React.useMemo(() => { + if (adminMembers.length === 0) { + return ( +
+ +
+ ); + } + + return (
{tabs}
{tabContent}
- ), - [tabContent, tabs], - ); + ); + }, [tabContent, tabs, adminMembers.length, allMembers, threadInfo]); return threadMembersModalContent; }