Skip to content

Commit 1a522c8

Browse files
committed
apply suggestion
1 parent d61bd30 commit 1a522c8

File tree

1 file changed

+13
-13
lines changed
  • apps/site/components/EOL/VulnerabilitiesTable

1 file changed

+13
-13
lines changed

apps/site/components/EOL/VulnerabilitiesTable/index.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ const VulnerabilitiesTable: FC<{
2626
{vulnerabilities.map((vulnerability, i) => (
2727
<tr key={i}>
2828
<td>
29-
{vulnerability.cve.length
30-
? vulnerability.cve.map(cveId => (
31-
<div key={cveId}>
32-
<LinkWithArrow
33-
href={`https://www.cve.org/CVERecord?id=${cveId}`}
34-
target="_blank"
35-
rel="noopener noreferrer"
36-
>
37-
{cveId}
38-
</LinkWithArrow>
39-
</div>
40-
))
41-
: '-'}
29+
{vulnerability.cve.map(cveId => (
30+
<div key={cveId}>
31+
<LinkWithArrow
32+
href={`https://www.cve.org/CVERecord?id=${cveId}`}
33+
target="_blank"
34+
rel="noopener noreferrer"
35+
>
36+
{cveId}
37+
</LinkWithArrow>
38+
</div>
39+
))}
40+
41+
{vulnerability.cve.length > 0 || '-'}
4242
</td>
4343
<td>
4444
<VulnerabilityChip severity={vulnerability.severity} />

0 commit comments

Comments
 (0)