Commit 9b68381f by Ivan Lan

feat: export header children

parent e38111ce
......@@ -22,7 +22,7 @@ module TalltyImportExport
def calcute_flatten_value _depth, _parent_path
@depth = _depth
@parent_path = _parent_path
if children
if children && children.count > 0
children.map do |child|
child.calcute_flatten_value(_depth + 1, [*_parent_path, self])
end.compact.flatten
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment