Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge 45de736 into f17861f
Browse files Browse the repository at this point in the history
  • Loading branch information
dewyze committed Apr 19, 2018
2 parents f17861f + 45de736 commit db56023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dato/local/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def to_hash(max_depth = 3, current_depth = 0)

if item_type.tree
base[:position] = position
base[:children] = children.map do |_i|
value.to_hash(
base[:children] = children.map do |child|
child.to_hash(
max_depth,
current_depth + 1
)
Expand Down

0 comments on commit db56023

Please sign in to comment.