Skip to content

Commit a2de37d

Browse files
committed
Properly handle CVEs with no CWE in the dependency check report.
1 parent 635885e commit a2de37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codepulse/src/main/resources/toserve/pages/projects/DependencyCheck.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
.attr('href', function(d) { return d.url })
6464
.text(function(d) { return d.name })
6565
.each(function() { $(this).openInBrowser() })
66-
cveHeaders.append('a')
66+
cveHeaders.select(function(d) { return !!d.cwe ? this : null; }).append('a')
6767
.classed('cwe-name', true)
6868
.attr('title', function(d) { return d.cwe.name })
6969
.attr('href', function(d) { return d.cwe.url })

0 commit comments

Comments
 (0)