Преглед на файлове

fix(extras): Conditionally render saved filter dropdown

Only display the saved filter dropdown in table controls when a filter
form is present and includes a filter_id field. This prevents rendering
an empty or non-functional dropdown when saved filters are unavailable.
Martin Hauser преди 5 дни
родител
ревизия
1a12f687ee
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      netbox/templates/inc/table_controls_htmx.html

+ 1 - 1
netbox/templates/inc/table_controls_htmx.html

@@ -18,7 +18,7 @@
     </div>
   </div>
 
-  {% if filter_form %}
+  {% if filter_form and filter_form.filter_id %}
     <div class="col-auto d-print-none">
       <div class="input-group">
         <label for="saved-filter-select" class="input-group-text">