Reverse display order of log messages

This commit is contained in:
Pierre HUBERT 2024-10-03 21:01:38 +02:00
parent caf05d9126
commit 436bcd5677

View File

@ -28,7 +28,9 @@ export function LogsRoute(): React.ReactElement {
const [logs, setLogs] = React.useState<LogEntry[] | undefined>();
const load = async () => {
setLogs(await LogsAPI.GetLogs(currDate));
const logs = await LogsAPI.GetLogs(currDate);
logs.reverse();
setLogs(logs);
};
const reload = () => {