From 8940732a86d8e68e60f7606309da286182513e2d Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Wed, 18 Sep 2024 18:44:48 -0400 Subject: [PATCH] Move model check to inner conditional --- netbox/templates/htmx/table.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index 171107c34..4bce37105 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -15,12 +15,12 @@ {% endwith %} -{% if request.htmx and model %} +{% if request.htmx %} {# Include the updated object count for display elsewhere on the page #}
{{ table.rows|length }}
{# Update the bulk action buttons with new query parameters #} - {% if actions %} + {% if actions and model %}
{% if 'bulk_edit' in actions %} {% bulk_edit_button model query_params=request.GET %}