Skip to content

Commit

Permalink
fix(website): revisit the authorized SSH keys filter on hosts tabulation
Browse files Browse the repository at this point in the history
  • Loading branch information
vst committed Mar 30, 2024
1 parent 9719020 commit 82b6b9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/src/components/report/TabulateHosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,13 @@ export function TabulateHosts({
.reduce((acc, tags) => [...acc, ...tags], [])
.sort()
.filter(function (el, i, a) {
return i === a.indexOf(el);
return i === a.map((x) => x.fingerprint).indexOf(el.fingerprint);
})
.map((n) => (
<SelectItem key={n.fingerprint} title={n.data}>
<SelectItem
key={n.fingerprint}
title={`${n.type} ${n.length} ${n.fingerprint} - ${n.comment || 'no comment'}`}
>
{n.data}
</SelectItem>
))}
Expand Down

0 comments on commit 82b6b9e

Please sign in to comment.