diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html
index b0cd76de4..19e7e6e3c 100644
--- a/netbox/templates/dcim/device.html
+++ b/netbox/templates/dcim/device.html
@@ -247,10 +247,15 @@
Leg {{ leg.name }} |
{{ leg.outlet_count }} |
{{ leg.allocated }} |
- {{ powerfeed.available_power|divide:3 }}VA |
- {% with phase_available=powerfeed.available_power|divide:3 %}
- {% utilization_graph leg.allocated|percentage:phase_available %} |
- {% endwith %}
+ {% if powerfeed.available_power %}
+ {% with phase_available=powerfeed.available_power|divide:3 %}
+ {{ phase_available }}VA |
+ {% utilization_graph leg.allocated|percentage:phase_available %} |
+ {% endwith %}
+ {% else %}
+ — |
+ — |
+ {% endif %}
{% endfor %}
{% endwith %}