aboutsummaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/map_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/map_helper.rb b/app/helpers/map_helper.rb
index 3403801..8fadff8 100644
--- a/app/helpers/map_helper.rb
+++ b/app/helpers/map_helper.rb
@@ -4,6 +4,7 @@
module MapHelper
def map_container(map = Map.first)
+ return unless map # Fixes a case where there are no maps
raw tag.div(
tag.div(id: 'map',
data: {