Clear indexed_by, too

This commit is contained in:
Jason Zimdars
2025-06-05 16:56:26 -05:00
parent 6ea2fdd9b6
commit bd5d17ff26
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ module FilterScoped
end
private
DEFAULT_PARAMS = { indexed_by: "newest" }
DEFAULT_PARAMS = { indexed_by: "latest" }
def set_filter
@filter = Current.user.filters.from_params params.reverse_merge(**DEFAULT_PARAMS).permit(*Filter::PERMITTED_PARAMS)
+1 -1
View File
@@ -12,7 +12,7 @@
<% end %>
<% if any_filters?(filter) %>
<%= link_to cards_path(filter.as_params.except(:assignee_ids, :assignment_status, :card_ids, :creator_ids, :stage_ids, :tag_ids, :terms)), class: "btn btn--remove txt-x-small" do %>
<%= link_to cards_path(filter.as_params.except(:assignee_ids, :assignment_status, :card_ids, :creator_ids, :stage_ids, :tag_ids, :terms, :indexed_by)), class: "btn btn--remove txt-x-small" do %>
<%= icon_tag "close" %>
<span class="for-screen-reader">Clear all</span>
<% end %>