Skip to content

Commit

Permalink
Fix columns concat
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Sep 12, 2024
1 parent 2ec2f13 commit ff0502f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function prepareParams(item, {reverse, columns, citycode, postcode, lat,

if (!reverse && columns) {
const stringToGeocode = columns
.map(c => c in item ? item[c].trim() : '')
.map(c => typeof item[c] === 'string' ? item[c].trim() : '')
.join(' ')
.trim()

Expand Down

0 comments on commit ff0502f

Please sign in to comment.