Skip to content

Commit

Permalink
Update product column in Vulnerabilities table
Browse files Browse the repository at this point in the history
  • Loading branch information
ameliav committed Sep 5, 2024
1 parent 75c1c25 commit 302c91e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/pages/Vulnerabilities/Vulnerabilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ export const Vulnerabilities: React.FC<{ groupBy?: string }> = ({
kev: vuln.isKev ? 'Yes' : 'No',
domain: vuln.domain.name,
domainId: vuln.domain.id,
product: vuln.cpe ?? 'N/A',
product: vuln.cpe
? vuln.cpe
: vuln.service.products
? vuln.service.products[0].cpe || 'N/A'
: 'N/A',
createdAt: `${differenceInCalendarDays(
Date.now(),
parseISO(vuln.createdAt)
Expand Down

0 comments on commit 302c91e

Please sign in to comment.