diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py
index 92739c6ed..7124c2b1f 100644
--- a/netbox/dcim/tables/template_code.py
+++ b/netbox/dcim/tables/template_code.py
@@ -385,7 +385,7 @@ MODULEBAY_BUTTONS = """
{% else %}
-
+
{% endif %}