react-spreadsheet-import icon indicating copy to clipboard operation
react-spreadsheet-import copied to clipboard

Columns are matched by field key rather than label

Open mismaah opened this issue 1 year ago • 1 comments

In the MatchColumns step, when matches are found using Levenstein distance, the field.key is passed to the lavenstein function instead of field.label. According to the readme, the label is used for matching columns. So either the findMatch function is wrong or the readme is wrong. If it's the former, I have opened a PR for it.

mismaah avatar Jun 04 '24 14:06 mismaah

I think you are right Note: you could use the field.alternateMatches property and pass the field.label there also

pablogtab-terrand avatar Aug 08 '24 11:08 pablogtab-terrand