diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html
index 09f99349b..80266c78d 100644
--- a/netbox/templates/dcim/device.html
+++ b/netbox/templates/dcim/device.html
@@ -31,17 +31,9 @@
{% if object.rack %}
{{ object.rack|linkify }}
- {% if object.parent_bay %}
- {% with object.parent_bay.device as parent %}
-
-
-
- {% endwith %}
- {% else %}
-
-
-
- {% endif %}
+
+
+
{% else %}
{{ ''|placeholder }}
{% endif %}
|