1
0
mirror of https://github.com/tooot-app/app synced 2025-03-09 16:10:05 +01:00

Fix prepended toots not interactable

This commit is contained in:
xmflsct 2023-01-11 21:51:28 +01:00
parent 01c27d6a99
commit 30be3cdb15

View File

@ -197,7 +197,8 @@ const TimelineRefresh: React.FC<Props> = ({
const insert = prevCache.current?.slice(-PREV_PER_BATCH)
prevCache.current = prevCache.current?.slice(0, -PREV_PER_BATCH)
if (insert) {
return { ...page, body: [...insert, ...page.body] }
page.body.unshift(...insert)
return page
} else {
return page
}