diff --git a/app/views/trestle/search/_search.html.erb b/app/views/trestle/search/_search.html.erb index 4d9b00b..de49bc9 100644 --- a/app/views/trestle/search/_search.html.erb +++ b/app/views/trestle/search/_search.html.erb @@ -2,12 +2,14 @@ <% if admin.searchable? %> @@ -16,9 +18,7 @@ <% if admin.filterable? %>
<%= form_for admin.filters, as: :f, url: admin.path, method: :get, builder: Trestle::Form::Builder, html: { id: nil, class: nil, data: { turbo_frame: "main" } } do |f| %> - <% persistent_params.each do |k, v| %> - <%= hidden_field_tag k, v unless k == "f" %> - <% end %> + <%= serialize_persistent_params except: :f %>