mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
The get_selected_header_for_field method was incorrectly using the entire field object instead of the field key to dig into the column_mappings hash. This caused an error when trying to retrieve the selected header for a field.
This commit is contained in:
parent
a5212f0f5e
commit
094128fef1
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Import < ApplicationRecord
|
|||
end
|
||||
|
||||
def get_selected_header_for_field(field)
|
||||
column_mappings&.dig(field) || field.key
|
||||
column_mappings&.dig(field.key) || field.key
|
||||
end
|
||||
|
||||
def update_csv!(row_idx:, col_idx:, value:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue