diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-03 11:13:27 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-03 11:13:27 +0530 |
commit | 8cd90246ba94400d4226435fdab5c3535c2f027f (patch) | |
tree | 13b280f2b6b445919cc7514ca2003d0269e1ece1 /src/client/util/SharingManager.tsx | |
parent | b3991f16b8e91bc19b5df5430efe3a71b9ad2ac7 (diff) | |
parent | 36f9a30619416e2cbef93bddd045ed262f9fe4fa (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into acls_uv
Diffstat (limited to 'src/client/util/SharingManager.tsx')
-rw-r--r-- | src/client/util/SharingManager.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index 6393170fa..a3c0a88fa 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -354,9 +354,9 @@ export default class SharingManager extends React.Component<{}> { private get sharingInterface() { const groupList = GroupManager.Instance?.getAllGroups() || []; - const sortedUsers = this.users.sort(this.sortUsers) + const sortedUsers = this.users.slice().sort(this.sortUsers) .map(({ user: { email } }) => ({ label: email, value: indType + email })); - const sortedGroups = groupList.sort(this.sortGroups) + const sortedGroups = groupList.slice().sort(this.sortGroups) .map(({ groupName }) => ({ label: StrCast(groupName), value: groupType + StrCast(groupName) })); const options: GroupedOptions[] = []; |