diff options
Diffstat (limited to 'src/lib/api/feed-manip.ts')
-rw-r--r-- | src/lib/api/feed-manip.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts index 7dfc9258a..912302d0a 100644 --- a/src/lib/api/feed-manip.ts +++ b/src/lib/api/feed-manip.ts @@ -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 }` } |