Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3381690
D12715.id42227.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
826 B
Referenced Files
None
Subscribers
None
D12715.id42227.diff
View Options
diff --git a/web/settings/relationship/add-users-utils.js b/web/settings/relationship/add-users-utils.js
--- a/web/settings/relationship/add-users-utils.js
+++ b/web/settings/relationship/add-users-utils.js
@@ -221,12 +221,18 @@
inputCommunityThreadInfo: communityThreadInfo,
threadType,
});
+
+ const filteredUserResults = React.useMemo(
+ () => userSearchResults.filter(item => !item.alert),
+ [userSearchResults],
+ );
+
const userSearchResultWithENSNames =
- useSortedENSResolvedUsers(userSearchResults);
+ useSortedENSResolvedUsers(filteredUserResults);
const userResults: { [id: string]: UserListItem } = React.useMemo(
- () => _keyBy('id')(userSearchResults),
- [userSearchResults],
+ () => _keyBy('id')(filteredUserResults),
+ [filteredUserResults],
);
return {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 5:53 AM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2596111
Default Alt Text
D12715.id42227.diff (826 B)
Attached To
Mode
D12715: [web] Don't allow creating subchannels with users the user should not be able to add
Attached
Detach File
Event Timeline
Log In to Comment