Skip to content

Commit a2f86e4

Browse files
committed
do not display threshold when vulnerability_count is none
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 7f56572 commit a2f86e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

product_portfolio/templates/product_portfolio/compliance_dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h1 class="h3 mb-0">{% trans "Compliance Control Center" %}</h1>
128128
{% endif %}
129129
</td>
130130
<td class="text-end">
131-
{% if product.risk_threshold %}
131+
{% if product.risk_threshold and product.vulnerability_count %}
132132
<span class="text-body-tertiary fs-xs" data-bs-toggle="tooltip" title="{% trans 'Risk threshold' %}">
133133
&ge; {{ product.risk_threshold }}
134134
</span>

0 commit comments

Comments
 (0)