Skip to content

Commit

Permalink
Merge pull request #161 from Ches-ctrl/13/05/24_category_sidebar_loca…
Browse files Browse the repository at this point in the history
…tions_fix

13/05/24 category sidebar locations fix
  • Loading branch information
Ches-ctrl committed May 13, 2024
2 parents cb267e3 + d61eafc commit ae8f5df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/services/category_sidebar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,16 @@ def self.build_with(params)
location_id = city.downcase.gsub(' ', '_')
count = @jobs_with_any_location.where("locations.city = ?", city)
.size
next if count.zero?

[
'checkbox',
[city, country].join(', '),
location_id,
count,
@params[:location]&.include?(location_id)
]
end
end.compact
locations << [
'checkbox',
'Remote',
Expand Down

0 comments on commit ae8f5df

Please sign in to comment.