Page MenuHomePhabricator

D4305.id13671.diff
No OneTemporary

D4305.id13671.diff

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

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)

Event Timeline