Page MenuHomePhabricator

D13359.diff
No OneTemporary

D13359.diff

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 (
+ <div className={css.modalContentContainer}>
+ <ThreadMembersList
+ threadInfo={threadInfo}
+ threadMembers={allMembers}
+ />
+ </div>
+ );
+ }
+
+ return (
<div className={css.modalContentContainer}>
{tabs}
<div className={css.membersListTabsContent}>{tabContent}</div>
</div>
- ),
- [tabContent, tabs],
- );
+ );
+ }, [tabContent, tabs, adminMembers.length, allMembers, threadInfo]);
return threadMembersModalContent;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 1:19 PM (19 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534980
Default Alt Text
D13359.diff (1 KB)

Event Timeline