mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 17:18:16 -06:00
virtual-chassis position zero #7564
Fix badges with value=0 not being displayed
This commit is contained in:
parent
c83c992b72
commit
ccbaeba8b4
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user