Commit 390060e2 by Ivan Lan

fix: fix handle_select

parent 4823b240
......@@ -306,9 +306,9 @@ module TalltyImportExport
end
end
def handle_select(data, header, **opts)
def handle_select(data, origin_header, **opts)
header = origin_header.symbolize_keys
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