From f4bd879f89a3e83b04917be9201c29f3230bf596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 18 Nov 2024 22:49:53 +0100 Subject: [PATCH] pl-fe: do not reverse replies order on each rerender MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/features/status/components/thread.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/features/status/components/thread.tsx b/packages/pl-fe/src/features/status/components/thread.tsx index 49febcfde..d45f733d7 100644 --- a/packages/pl-fe/src/features/status/components/thread.tsx +++ b/packages/pl-fe/src/features/status/components/thread.tsx @@ -67,7 +67,7 @@ const makeGetDescendantsIds = () => createSelector([ } if (replies) { - replies.reverse().forEach((reply: string) => { + replies.toReversed().forEach((reply: string) => { ids.unshift(reply); }); }