Commit 8b8645af by JustSong

fix: do not reuse state variable directly

parent 536cbe4c
......@@ -107,7 +107,7 @@ const LogsTable = () => {
if (startIdx === 0) {
setLogs(data);
} else {
let newLogs = logs;
let newLogs = [...logs];
newLogs.push(...data);
setLogs(newLogs);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment