Merge pull request #4702 from urbit/mp/profile/mutation

ViewProfile: clone contact groups array
This commit is contained in:
matildepark 2021-03-31 18:04:55 -04:00 committed by GitHub
commit 04e15c6a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ export function ViewProfile(props: any): ReactElement {
<Col gapY='3' mb='3' mt='6' alignItems='flex-start'>
<Text gray>Pinned Groups</Text>
<Col>
{contact?.groups.sort(lengthOrder).map((g) => (
{contact?.groups.slice().sort(lengthOrder).map((g) => (
<GroupLink
api={api}
resource={g}