fix: page null exception, close #821

This commit is contained in:
GyDi
2023-10-30 00:53:24 +08:00
parent 510a0c5e70
commit fb08af96bd
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ const ConnectionsPage = () => {
const connections: typeof oldConn = [];
const rest = data.connections?.filter((each) => {
const rest = (data.connections || []).filter((each) => {
const index = oldConn.findIndex((o) => o.id === each.id);
if (index >= 0 && index < maxLen) {