fix: do not reuse state variable directly
This commit is contained in:
1 parent
536cbe4c8b
commit
8b8645af45
1 file changed
+1
-1
@@ -107,7 +107,7 @@ const LogsTable = () => {
|
||||
if (startIdx === 0) {
|
||||
setLogs(data);
|
||||
} else {
|
||||
let newLogs = logs;
|
||||
let newLogs = [...logs];
|
||||
newLogs.push(...data);
|
||||
setLogs(newLogs);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user