Skip to content

Commit

Permalink
Use consistent index for reading last item (#4817)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Jul 24, 2024
1 parent 4af6bcb commit 9bd8393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/com/posts/FeedSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ let FeedSlice = ({
record={slice.items[last].record}
reason={slice.items[last].reason}
feedContext={slice.items[last].feedContext}
parentAuthor={slice.items[2].parentAuthor}
parentAuthor={slice.items[last].parentAuthor}
showReplyTo={false}
moderation={slice.items[last].moderation}
isThreadParent={isThreadParentAt(slice.items, last)}
isThreadChild={isThreadChildAt(slice.items, last)}
isParentBlocked={slice.items[2].isParentBlocked}
isParentBlocked={slice.items[last].isParentBlocked}
isThreadLastChild
/>
</>
Expand Down

0 comments on commit 9bd8393

Please sign in to comment.