Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3493430
D4305.id13619.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
914 B
Referenced Files
None
Subscribers
None
D4305.id13619.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,17 @@
userStoreSearchResults,
]);
+ // eslint-disable-next-line no-unused-vars
+ const sortedUsers = React.useMemo(() => {
+ const users = [];
+ for (const userID in mergedUserInfos) {
+ users.push(mergedUserInfos[userID]);
+ }
+ return users.sort((user1, user2) =>
+ user1.username.localeCompare(user2.username),
+ );
+ }, [mergedUserInfos]);
+
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 3:19 AM (17 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679964
Default Alt Text
D4305.id13619.diff (914 B)
Attached To
Mode
D4305: [web] Prepare a list of users that should be displayed
Attached
Detach File
Event Timeline
Log In to Comment