Skip to content

Commit

Permalink
Fixed rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelFrias97 committed Oct 18, 2024
1 parent 7541f2c commit 9adc596
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/bali/filters/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def attributes?
end

def active_filters
@active_filters || query_params.except('s').filter { |_k, v| v.present? }
@active_filters || query_params.except('s').compact_blank
end

def attribute_names
Expand Down
2 changes: 1 addition & 1 deletion lib/bali/filter_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def active_filters?
end

def active_filters
@active_filters || query_params.except('s').filter { |_k, v| v.present? }
@active_filters || query_params.except('s').compact_blank
end

def non_date_range_attribute_names
Expand Down
2 changes: 1 addition & 1 deletion lib/bali/form_builder/shared_date_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def controller_values(method, options)
alt_format: options[:alt_format]
}

if options[:mode] == 'range' && options[:value] && options[:value].respond_to?(:first)
if options[:mode] == 'range' && options[:value].respond_to?(:first)
controller_values[:default_dates] = [options[:value].first, options[:value].last]
end

Expand Down

0 comments on commit 9adc596

Please sign in to comment.