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 2f99389
Showing 1 changed file with 1 addition and 1 deletion.
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 2f99389

Please sign in to comment.