Skip to content

Commit

Permalink
fix: html report bug fix (intel#3906)
Browse files Browse the repository at this point in the history
fixes intel#3899
*Added required conditional check
  • Loading branch information
Mayankrai449 committed Mar 8, 2024
1 parent ebfc678 commit 84c01ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% else %}
<span class="h5">{{ product_info.product }} {{ product_info.version }}</span>
{% endif %}
<span class="h5 float-end mr-5">CVE Count: {{ 0 if cve_data["cves"][0][1] == "UNKNOWN" else cve_data['cves'] | length }}</span><hr \>
<span class="h5 float-end mr-5">CVE Count: {{ 0 if (not cve_data["cves"] or cve_data["cves"][0][1] == "UNKNOWN") else cve_data['cves'] | length }}</span><hr \>
</div>
<!-- If CVE Number UNKNOWN don't render -->
{% if cve_data["cves"][0][1] != "UNKNOWN" %}
Expand Down

0 comments on commit 84c01ed

Please sign in to comment.