Skip to content

Commit cada0bb

Browse files
committed
Add empty other places and don't feature video by default.
1 parent a2b9d3e commit cada0bb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app/lib/ecds/enhance/georgia_coast_counties.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def enhance
2424
@document[:types] = ['County']
2525
if @document[:places].empty?
2626
@document[:places] = other_places
27+
@document[:other_places] = []
2728
else
2829
@document[:places] = add_places(@document[:places])
2930
@document[:other_places] = other_places

app/lib/ecds/enhance/georgia_coast_places.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def featured_photograph
8181
def featured_video
8282
return nil if @document[:videos].empty?
8383

84-
@document[:videos].find { |video| video[:featured] } || @document[:videos].first
84+
@document[:videos].find { |video| video[:featured] } || nil
8585
end
8686

8787
def map_layers

0 commit comments

Comments
 (0)