fix: page null exception, close #821
This commit is contained in:
parent
510a0c5e70
commit
fb08af96bd
@ -58,7 +58,7 @@ export const ConnectionItem = (props: Props) => {
|
||||
|
||||
{!!metadata.process && <Tag>{metadata.process}</Tag>}
|
||||
|
||||
{chains.length > 0 && <Tag>{chains[value.chains.length - 1]}</Tag>}
|
||||
{chains?.length > 0 && <Tag>{chains[value.chains.length - 1]}</Tag>}
|
||||
|
||||
<Tag>{dayjs(start).fromNow()}</Tag>
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user