diff --git a/src/view/com/lists/ProfileLists.tsx b/src/view/com/lists/ProfileLists.tsx index ed42a26077..692891e47d 100644 --- a/src/view/com/lists/ProfileLists.tsx +++ b/src/view/com/lists/ProfileLists.tsx @@ -75,7 +75,12 @@ export function ProfileLists({ items = items.concat([EMPTY]) } else if (data?.pages) { for (const page of data?.pages) { - items = items.concat(page.lists) + items = items.concat( + page.lists.map(l => ({ + ...l, + _reactKey: l.uri, + })), + ) } } if (isError && !isEmpty) { diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 54e042d044..6674d7cd17 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -137,11 +137,11 @@ function SearchScreenSuggestedFollows() { ), ) ).flat() - - setSuggestions( - // dedupe - friendsOfFriends.filter(f => !friends.find(f2 => f.did === f2.did)), + const deduped = friendsOfFriends.filter( + (f, i) => friendsOfFriends.findIndex(f2 => f.did === f2.did) === i, ) + + setSuggestions(deduped) setDataUpdatedAt(Date.now()) }