Fix LogConsole using duplicated keys

Fix past lines loaded from the log containing keys that clash with new
items logged.
This commit is contained in:
Hornwitser committed 2022-06-09 00:53:12 +02:00
1 parent c5a0c0a873
commit 654465e4eb
1 file changed
+1 -1
@@ -76,7 +76,7 @@ export default function LogConsole(props) {
limit: 400,
order: "desc",
}).then(result => {
setPastLines(result.log.map((info, index) => formatLog(info, index)).reverse());
setPastLines(result.log.map((info, index) => formatLog(info, -index - 1)).reverse());
}).catch(err => {
setPastLines([<span key={0}>{`Error loading log: ${err.message}`}<br/></span>]);
});