virtual-chassis position zero #7564

Fix badges with value=0 not being displayed
This commit is contained in:
PieterL75 2021-10-18 16:57:27 +02:00 committed by GitHub
parent c83c992b72
commit ccbaeba8b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,7 +375,7 @@ def badge(value, bg_class='secondary', show_empty=False):
Display the specified number as a badge.
"""
return {
'value': value,
'value': str(value),
'bg_class': bg_class,
'show_empty': show_empty,
}