Do not render the geozone link where there are no geozones defined
This commit is contained in:
@@ -6,4 +6,8 @@ class Shared::GeozoneLinkComponent < ApplicationComponent
|
||||
@geozonable = geozonable
|
||||
@link = link
|
||||
end
|
||||
|
||||
def render?
|
||||
Geozone.any?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user