Use consistent index for reading last item (#4817)

zio/stable
dan 2024-07-24 02:32:05 +01:00 committed by GitHub
parent 4af6bcb11a
commit 9bd8393685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -56,12 +56,12 @@ let FeedSlice = ({
record={slice.items[last].record} record={slice.items[last].record}
reason={slice.items[last].reason} reason={slice.items[last].reason}
feedContext={slice.items[last].feedContext} feedContext={slice.items[last].feedContext}
parentAuthor={slice.items[2].parentAuthor} parentAuthor={slice.items[last].parentAuthor}
showReplyTo={false} showReplyTo={false}
moderation={slice.items[last].moderation} moderation={slice.items[last].moderation}
isThreadParent={isThreadParentAt(slice.items, last)} isThreadParent={isThreadParentAt(slice.items, last)}
isThreadChild={isThreadChildAt(slice.items, last)} isThreadChild={isThreadChildAt(slice.items, last)}
isParentBlocked={slice.items[2].isParentBlocked} isParentBlocked={slice.items[last].isParentBlocked}
isThreadLastChild isThreadLastChild
/> />
</> </>