lib/wcc/contentful/store/query.rb in wcc-contentful-1.0.8 vs lib/wcc/contentful/store/query.rb in wcc-contentful-1.1.0

- old
+ new

@@ -106,10 +106,10 @@ def resolve_includes(row, depth) entry = row.try(:entry) || row.try(:[], 0) || row includes = row.try(:includes) || row.try(:[], 1) return entry unless entry && depth && depth > 0 - WCC::Contentful::LinkVisitor.new(entry, :Link, :Asset, + WCC::Contentful::LinkVisitor.new(entry, :Link, # Walk all the links except for the leaf nodes depth: depth - 1).map! do |val| resolve_link(val, includes) end end