mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Fix CSV import preview crash on empty values (#756)
This commit is contained in:
parent
1bbfdee463
commit
31ef3d85f5
3 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
class Import::Csv
|
||||
def self.parse_csv(csv_str)
|
||||
CSV.parse((csv_str || "").strip, headers: true, converters: [ ->(str) { str.strip } ])
|
||||
CSV.parse((csv_str || "").strip, headers: true, converters: [ ->(str) { str&.strip } ])
|
||||
end
|
||||
|
||||
def self.create_with_field_mappings(raw_csv_str, fields, field_mappings)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue