fix(frontend): server metrics look strange after reload (#14467)
This commit is contained in:
@@ -138,7 +138,7 @@ function onStats(connStats: Misskey.entities.ServerStats) {
|
||||
}
|
||||
|
||||
function onStatsLog(statsLog: Misskey.entities.ServerStatsLog) {
|
||||
for (const revStats of statsLog.reverse()) {
|
||||
for (const revStats of statsLog.toReversed()) {
|
||||
onStats(revStats);
|
||||
}
|
||||
}
|
||||
|
@@ -111,7 +111,7 @@ function onStats(connStats: Misskey.entities.ServerStats) {
|
||||
}
|
||||
|
||||
function onStatsLog(statsLog: Misskey.entities.ServerStatsLog) {
|
||||
for (const revStats of statsLog.reverse()) {
|
||||
for (const revStats of statsLog.toReversed()) {
|
||||
onStats(revStats);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user