Skip to content

Commit

Permalink
Merge pull request #69 from GIScience/fix/geocode-request-args
Browse files Browse the repository at this point in the history
fix: reqArgs in structuredGeocode to this.requestArgs
  • Loading branch information
TheGreatRefrigerator committed Apr 19, 2023
2 parents e8bf723 + ed2e491 commit d2af9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OrsGeocode.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ class OrsGeocode extends OrsBase {

this.checkHeaders()

if (!this.defaultArgs[Constants.propNames.service] && !reqArgs[Constants.propNames.service]) {
reqArgs.service = 'geocode/search/structured'
if (!this.defaultArgs[Constants.propNames.service] && !this.requestArgs[Constants.propNames.service]) {
this.requestArgs.service = 'geocode/search/structured'
}
this.requestArgs = orsUtil.fillArgs(this.defaultArgs,this.requestArgs)

Expand Down

0 comments on commit d2af9b1

Please sign in to comment.