Skip to content

Commit

Permalink
fix groups and categories selection at browse page init
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Sep 9, 2024
1 parent 13a2ed7 commit 47eda19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ gem 'flag-icons-rails', '~> 3.4'
gem 'iso-639', '~> 0.3.6'

# Custom API client
gem 'ontologies_api_client', git: 'https://github.com/ontoportal-lirmm/ontologies_api_ruby_client.git', branch: 'master'
gem 'ontologies_api_client', git: 'https://github.com/ontoportal-lirmm/ontologies_api_ruby_client.git', branch: 'development'

# Ruby 2.7.8 pinned gems (to remove when migrating to Ruby >= 3.0)
gem 'ffi', '~> 1.16.3'
Expand Down
2 changes: 1 addition & 1 deletion app/views/ontologies/browser/browse.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
.browse-filter-checks-container
- values.first.each do |object|
- title = (key.eql?(:categories) || key.eql?(:groups)) ? nil : ''
= group_chip_component(name: key, object: object, checked: [link_last_part(object["id"]),link_last_part(object["value"])].include?(values[1]) , title: title) do |c|
= group_chip_component(name: key, object: object, checked: values[1].any?(link_last_part(object["id"])) || values[1].any?(link_last_part(object["value"])) , title: title) do |c|
- c.count do
%span.badge.badge-light.ml-1
= turbo_frame_tag "count_#{key}_#{link_last_part(object["id"])}", busy: true
Expand Down

0 comments on commit 47eda19

Please sign in to comment.