From 62339b9f6ab41c43780d79600631a067ba6e256b Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Thu, 3 Oct 2024 04:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Update:=20Ex=20-=20Fix=20`LogLis?= =?UTF-8?q?tDisplay`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/components/LogListDisplay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/components/LogListDisplay.tsx b/example/src/components/LogListDisplay.tsx index e066625..d9dfd8d 100644 --- a/example/src/components/LogListDisplay.tsx +++ b/example/src/components/LogListDisplay.tsx @@ -32,7 +32,7 @@ export const LogListDisplay = React.forwardRef< const maxItemsToShow = props.maxItemsToShow ?? 15; const recentEventsSorted = events.sort((a, b) => a.index - b.index); - const recentEvents = recentEventsSorted.reverse().slice(-maxItemsToShow); + const recentEvents = recentEventsSorted.slice(-maxItemsToShow); React.useImperativeHandle(ref, () => ({ addItem: (itemTitle) => {