We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485e013 commit ad5415dCopy full SHA for ad5415d
src/actions/index.js
@@ -61,7 +61,7 @@ function fetchDirections() {
61
if (alternatives) options.push('alternatives=true');
62
options.push('steps=true');
63
options.push('overview=full');
64
- options.push('access_token=' + accessToken);
+ if (accessToken) options.push('access_token=' + accessToken);
65
request.abort();
66
request.open('GET', `${api}${profile}/${query}.json?${options.join('&')}`, true);
67
0 commit comments