Commit 3540cf1e by Ivan Lan

fix: 修复 CellColumn 对于可拆分的判断

parent 704a1b4f
......@@ -10,7 +10,7 @@ class TalltyImportExport::ExportPayload::CellColumn
@value_handler = value_handler
val = @value_handler.call(@value.value, @header.as_json.symbolize_keys, keep_array: true)
if header.children && val.is_a?(Array)
if (header.children&.length || 0) > 0 && val.is_a?(Array)
@cell_clusters = val.map do |val|
TalltyImportExport::ExportPayload::Cell.new(
@header,
......
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