Fix displaying patched versions (#127)

This commit is contained in:
Paolo Barbolini 2021-11-25 10:46:51 +01:00 committed by GitHub
parent f2899ceb81
commit 7ac25b31ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,7 +287,7 @@ fn vulnerability_list(analysis_outcome: &AnalyzeDependenciesOutcome) -> Markup {
div class="level-item has-text-centered" {
div {
p class="heading" { "Patched" }
@if vuln.versions.unaffected().is_empty() {
@if vuln.versions.patched().is_empty() {
p class="has-text-grey" { "None"}
} @else {
@for item in vuln.versions.patched() {