diff --git a/pkg/ui/src/views/reports/containers/network/index.tsx b/pkg/ui/src/views/reports/containers/network/index.tsx index d7157f75dc9b..b7967b09f4ba 100644 --- a/pkg/ui/src/views/reports/containers/network/index.tsx +++ b/pkg/ui/src/views/reports/containers/network/index.tsx @@ -427,6 +427,12 @@ export class Network extends React.Component { .keys() .map((nodeIDb) => Number.parseInt(nodeIDb, 10)) .difference(healthyIDs) + // It's possible for the activity list to contain nodes + // that are no longer in our list of known nodes in + // `identityByID`. We ensure via the filter below + // that we only access nodes we have data for to + // prevent unrecoverable error states. + .filter((id) => identityByID.has(id)) .map((nodeIDb) => ({ from: identityByID.get(nodeIDa), to: identityByID.get(nodeIDb),