From bd5d17ff26830e7631a28bf56d5ee08bed22c222 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 5 Jun 2025 16:56:26 -0500 Subject: [PATCH] Clear `indexed_by`, too --- app/controllers/concerns/filter_scoped.rb | 2 +- app/views/filters/_settings.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/concerns/filter_scoped.rb b/app/controllers/concerns/filter_scoped.rb index f3d5df02c..660365563 100644 --- a/app/controllers/concerns/filter_scoped.rb +++ b/app/controllers/concerns/filter_scoped.rb @@ -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) diff --git a/app/views/filters/_settings.html.erb b/app/views/filters/_settings.html.erb index 5505f7a22..9d2d9e392 100644 --- a/app/views/filters/_settings.html.erb +++ b/app/views/filters/_settings.html.erb @@ -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" %> Clear all <% end %>