From 98e6dfcbcf7a6b3d7fb43f683cea7b93c2f93c9b Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 29 Apr 2025 10:12:05 +0200 Subject: [PATCH] Fix context selector trying to mutate immutable state (#34573) --- app/javascript/mastodon/selectors/contexts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) &&