Skip to content

Commit

Permalink
rename event payload parameter version to apiVersion because version …
Browse files Browse the repository at this point in the history
…already exists
  • Loading branch information
VladislavMedved committed Jan 31, 2023
1 parent 3dc0744 commit 767f979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ MapboxEventManager.prototype = {
worldview: geocoder.options.worldview,
mapZoom: zoom,
keyboardLocale: this.locale,
version: geocoder.options.version
apiVersion: geocoder.options.version
}

// get the text in the search bar
Expand All @@ -191,6 +191,7 @@ MapboxEventManager.prototype = {
}else{
payload.queryString = geocoder.inputString;
}
console.log('LOG EVENT', event, payload);
return payload;
},

Expand Down

0 comments on commit 767f979

Please sign in to comment.