Commit 4823b240 by Ivan Lan

fix: remove deep_symbolize_keys

parent 368da27f
......@@ -106,7 +106,7 @@ module TalltyImportExport
title1 = workbook.styles.add_style(alignment: alignment, border: border, sz: 12, b: true)
title2 = workbook.styles.add_style(alignment: alignment, border: border, bg_color: '2a5caa', sz: 12, fg_color: 'fffffb')
title3 = workbook.styles.add_style(alignment: alignment.merge(wrap_text: true), border: border, sz: 10)
headers = (export_headers || export_headers_result(**options)).deep_symbolize_keys
headers = export_headers || export_headers_result(**options)
_sheet_name = respond_to?(:sheet_name) ? sheet_name : nil
_sheet_name ||= sheet_name
......@@ -308,6 +308,7 @@ module TalltyImportExport
def handle_select(data, header, **opts)
if header[:select].present?
Rails.logger.info "handle_select: #{header}#{data}"
select_option = header[:select].find { |option| option[:value].to_s == data.to_s }
select_option.present? ? select_option[:label] : data
else
......
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