diff --git a/app/javascript/mastodon/selectors/contexts.ts b/app/javascript/mastodon/selectors/contexts.ts index 1c76d7cc82..213f93e800 100644 --- a/app/javascript/mastodon/selectors/contexts.ts +++ b/app/javascript/mastodon/selectors/contexts.ts @@ -41,7 +41,7 @@ export const getDescendantsIds = createAppSelector( } if (replies) { - replies.reverse().forEach((replyId) => { + replies.toReversed().forEach((replyId) => { if ( !visitIds.includes(replyId) && !descendantsIds.includes(replyId) &&