fix: fix refresh not working properly (close #229)

This commit is contained in:
JustSong
2023-07-02 15:55:49 +08:00
parent f387cc5ead
commit 9ec6506c32
3 changed files with 8 additions and 8 deletions

View File

@@ -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 {