Page MenuHomePhabricator

D12715.id42227.diff
No OneTemporary

D12715.id42227.diff

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

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)

Event Timeline