Match first field when importing rather than last
This commit is contained in:
parent
2c5422fdd5
commit
fe7fdc3dd2
|
|
@ -634,7 +634,8 @@ class __FileMapperState extends State<_FileMapper> {
|
|||
final spaceCase = possible.replaceAll('_', ' ');
|
||||
final translated = localization.lookup(possible);
|
||||
|
||||
if ([possible, spaceCase, translated].contains(field.toLowerCase())) {
|
||||
if ([possible, spaceCase, translated].contains(field.toLowerCase()) &&
|
||||
_mapping[entry.key][i] == null) {
|
||||
_mapping[entry.key][i] = availableField;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue