Do not render the geozone link where there are no geozones defined

This commit is contained in:
Senén Rodero Rodríguez
2023-06-12 14:56:03 +02:00
parent a6b1866908
commit 9003c460d5
3 changed files with 29 additions and 0 deletions

View File

@@ -6,4 +6,8 @@ class Shared::GeozoneLinkComponent < ApplicationComponent
@geozonable = geozonable
@link = link
end
def render?
Geozone.any?
end
end