Merge pull request #4683 from consul/empty_sdg_tags
Don't render empty SDG tag list div
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user