fix: do not reuse state variable directly
This commit is contained in:
parent
5fdf670a19
commit
f5c1fcd3c3
@ -107,7 +107,7 @@ const LogsTable = () => {
|
||||
if (startIdx === 0) {
|
||||
setLogs(data);
|
||||
} else {
|
||||
let newLogs = logs;
|
||||
let newLogs = [...logs];
|
||||
newLogs.push(...data);
|
||||
setLogs(newLogs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user