Fix some key errors (#1951)
parent
c858b58307
commit
0dfc039a47
|
@ -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) {
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue