Skip to content

Commit

Permalink
fix browse categories issue when a portal is down
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal committed Jan 9, 2025
1 parent 25dc425 commit 27b52ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/ontologies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ def search_first_instance_id

def keep_only_root_categories(categories)
categories.select do |category|
next unless category.id
category.id.start_with?(rest_url) || category.parentCategory.blank?
end
end
Expand Down

0 comments on commit 27b52ca

Please sign in to comment.