mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-21 20:18:38 +00:00
fix: fix refresh not working properly (close #229)
This commit is contained in:
@@ -108,7 +108,7 @@ const LogsTable = () => {
|
||||
setLogs(data);
|
||||
} else {
|
||||
let newLogs = [...logs];
|
||||
newLogs.push(...data);
|
||||
newLogs.splice(startIdx * ITEMS_PER_PAGE, data.length, ...data);
|
||||
setLogs(newLogs);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user