({
vulnerabilities,
})
| 8 | }; |
| 9 | |
| 10 | const KnownSeveritySection: FC<KnownSeveritySectionProps> = ({ |
| 11 | vulnerabilities, |
| 12 | }) => { |
| 13 | const knownVulnerabilities = vulnerabilities.filter( |
| 14 | v => v.severity !== 'unknown' |
| 15 | ); |
| 16 | |
| 17 | if (!knownVulnerabilities.length) { |
| 18 | return null; |
| 19 | } |
| 20 | |
| 21 | return <VulnerabilitiesTable vulnerabilities={knownVulnerabilities} />; |
| 22 | }; |
| 23 | |
| 24 | export default KnownSeveritySection; |
nothing calls this directly
no outgoing calls
no test coverage detected