mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
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:
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>]);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user