update sections_content fetching

Julien Girard committed May 18, 2018
commit 894ac1e634ac2f2603e32e7fc788fc6017ff9812
Showing 1 changed file with 1 additions and 1 deletions
locomotive/steam/liquid/tags/section.rb b/lib/locomotive/steam/liquid/tags/section.rb +1 -1
@@ @@ -21,7 +21,7 @@ module Locomotive
# 3. because it's considered as a static section, go get the content from
# the current site. If it doesn't exist, use the default attribute of
# the section
- section_content = context['site']&.sections_content&.fetch(@template_name, nil) #context["site"].sections[@template_name]
+ section_content = context['site']&.sections_content&.find{|a| a['id'] == @template_name}
if section_content.blank?
section_content = section.definition[:default] || {}