Skip to content

Commit d490057

Browse files
fix test
1 parent c52770a commit d490057

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -682,10 +682,6 @@ MapboxGeocoder.prototype = {
682682
coords.reverse();
683683
}
684684

685-
// client only accepts one type for reverseGeocode, so
686-
// use first config type if one, if not default to poi for v5 and address for v6
687-
const defaultType = this.options.version === 'v6' ? ["address"] : ["poi"];
688-
config.types = config.types ? [config.types[0]] : defaultType;
689685
config = extend(config,
690686
this.options.version === 'v6' ? { longitude: coords[0], latitude: coords[1]} : { query: coords },
691687
{limit: 1 }

0 commit comments

Comments
 (0)