Use consistent index for reading last item (#4817)
parent
4af6bcb11a
commit
9bd8393685
|
@ -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
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue