From 436bcd5677f8a6a3a89e48ee7e739c77fefa62ee Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 3 Oct 2024 21:01:38 +0200 Subject: [PATCH] Reverse display order of log messages --- central_frontend/src/routes/LogsRoute.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/central_frontend/src/routes/LogsRoute.tsx b/central_frontend/src/routes/LogsRoute.tsx index 192264e..89870ed 100644 --- a/central_frontend/src/routes/LogsRoute.tsx +++ b/central_frontend/src/routes/LogsRoute.tsx @@ -28,7 +28,9 @@ export function LogsRoute(): React.ReactElement { const [logs, setLogs] = React.useState(); const load = async () => { - setLogs(await LogsAPI.GetLogs(currDate)); + const logs = await LogsAPI.GetLogs(currDate); + logs.reverse(); + setLogs(logs); }; const reload = () => {