Skip to content

Commit 764164c

Browse files
authored
[claudesquad] update from 'transaction-page-filter-tweaks' on 23 Jul 25 18:27 EDT (#2513)
1 parent ef49268 commit 764164c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/controllers/transactions_controller.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def update
110110

111111
private
112112
def per_page
113-
params[:per_page].to_i.positive? ? params[:per_page].to_i : 50
113+
params[:per_page].to_i.positive? ? params[:per_page].to_i : 20
114114
end
115115

116116
def needs_rule_notification?(transaction)
@@ -154,10 +154,6 @@ def search_params
154154

155155
cleaned_params.delete(:amount_operator) unless cleaned_params[:amount].present?
156156

157-
# Only add default start_date if params are blank AND filters weren't explicitly cleared
158-
if cleaned_params.blank? && params[:filter_cleared].blank?
159-
cleaned_params[:start_date] = 30.days.ago.to_date
160-
end
161157

162158
cleaned_params
163159
end

0 commit comments

Comments
 (0)