Skip to content

Commit

Permalink
Ensure we only use live taxons
Browse files Browse the repository at this point in the history
  • Loading branch information
sihugh authored and Vanita Barrett committed Jul 23, 2018
1 parent 55a81c8 commit 73d1fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/content_items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def load_content_item

def load_taxonomy_navigation
if @content_item.taxons.present?
taxons = @content_item.taxons
taxons = @content_item.taxons.select { |taxon| taxon["phase"] == "live" }

taxon_ids = taxons.map { |taxon| taxon["content_id"] }
services = Supergroups::Services.new(taxon_ids)
Expand Down

0 comments on commit 73d1fe0

Please sign in to comment.