Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3488704
D4305.id13671.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
866 B
Referenced Files
None
Subscribers
None
D4305.id13671.diff
View Options
diff --git a/web/settings/relationship/add-users-list.react.js b/web/settings/relationship/add-users-list.react.js
--- a/web/settings/relationship/add-users-list.react.js
+++ b/web/settings/relationship/add-users-list.react.js
@@ -43,7 +43,6 @@
const searchTextPresent = searchText.length > 0;
const userInfos = useSelector(state => state.userStore.userInfos);
- // eslint-disable-next-line no-unused-vars
const mergedUserInfos = React.useMemo(() => {
const mergedInfos = {};
@@ -69,6 +68,15 @@
userStoreSearchResults,
]);
+ // eslint-disable-next-line no-unused-vars
+ const sortedUsers = React.useMemo(
+ () =>
+ Object.keys(mergedUserInfos)
+ .map(userID => mergedUserInfos[userID])
+ .sort((user1, user2) => user1.username.localeCompare(user2.username)),
+ [mergedUserInfos],
+ );
+
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 10:59 AM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2676256
Default Alt Text
D4305.id13671.diff (866 B)
Attached To
Mode
D4305: [web] Prepare a list of users that should be displayed
Attached
Detach File
Event Timeline
Log In to Comment