Skip to content

Commit

Permalink
adding hidden fields to form to preserve sort field and order
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierubeiz committed Sep 19, 2024
1 parent d25d34a commit dd37ac9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/admin/works/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
%>
</div>
</div>
<%= hidden_field_tag :sort_field, params[:sort_field]%>
<%= hidden_field_tag :sort_order, params[:sort_order]%>
<% end %>
<%= render PageEntriesInfoComponent.new(@works) %>
Expand Down

0 comments on commit dd37ac9

Please sign in to comment.