Skip to content

Commit

Permalink
fix home page bubbles if no analytics enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 9, 2024
1 parent 6bd137a commit a11dde0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def index
@anal_ont_names = []
@anal_ont_numbers = []
if @analytics.empty?
all_metrics = LinkedData::Client::Models::Metrics.all
all_metrics.sort_by{|x| -(x.classes + x.individuals)}[0..4].each do |x|
@anal_ont_names << x.links["ontology"].split('/').last
@anal_ont_numbers << x.classes + x.individuals
Expand Down

0 comments on commit a11dde0

Please sign in to comment.