Merge pull request #4683 from consul/empty_sdg_tags

Don't render empty SDG tag list div
This commit is contained in:
Javi Martín
2021-10-04 16:07:28 +02:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ class SDG::TagListComponent < ApplicationComponent
@linkable = linkable
end
def render?
record.sdg_goals.any? || record.sdg_targets.any?
end
private
def goals_list