diff options
author | dan <dan.abramov@gmail.com> | 2024-07-24 02:32:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 02:32:05 +0100 |
commit | 9bd8393685cb6f2640dd33ee5707f3cb710f1365 (patch) | |
tree | 4395eab4b679b88608b1041df01dddad39699383 /src | |
parent | 4af6bcb11ad78f993318f4b5f7b5029af4951866 (diff) | |
download | voidsky-9bd8393685cb6f2640dd33ee5707f3cb710f1365.tar.zst |
Use consistent index for reading last item (#4817)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/posts/FeedSlice.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/posts/FeedSlice.tsx b/src/view/com/posts/FeedSlice.tsx index 3e08f253c..b8c9a1f2c 100644 --- a/src/view/com/posts/FeedSlice.tsx +++ b/src/view/com/posts/FeedSlice.tsx @@ -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 /> </> |