Skip to content

Commit

Permalink
CB-4661 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Sep 18, 2024
1 parent 4493dc6 commit 9c850ca
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,7 @@ interface Props {
}

function getOriginsMap(origins: (ConnectionInfoOrigin | undefined)[]) {
const map = new Map<string, ConnectionInfoOrigin>();

for (const origin of origins) {
if (!isNotNullDefined(origin)) {
continue;
}

map.set(origin.id, origin);
}

return map;
return new Map(origins.filter(isNotNullDefined).map(origin => [origin.id, origin]));
}

export const ConnectionsTable = observer<Props>(function ConnectionsTable({ state }) {
Expand Down

0 comments on commit 9c850ca

Please sign in to comment.