Two fixes to react-key generation (#2004)
* Fix missing react keys in ListMembers * Fix react key construction for the posts feed
This commit is contained in:
parent
1dc017367e
commit
cd43adf698
2 changed files with 4 additions and 3 deletions
|
@ -19,8 +19,9 @@ export class FeedViewPostsSlice {
|
|||
constructor(public items: FeedViewPost[] = []) {}
|
||||
|
||||
get _reactKey() {
|
||||
return `slice-${this.items[0].post.uri}-${
|
||||
this.items[0].reason?.indexedAt || this.items[0].post.indexedAt
|
||||
const rootItem = this.isFlattenedReply ? this.items[1] : this.items[0]
|
||||
return `slice-${rootItem.post.uri}-${
|
||||
rootItem.reason?.indexedAt || rootItem.post.indexedAt
|
||||
}`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue