Fix url params parsing.

pull/21833/head
Richard Lewis 2017-11-07 11:58:38 +00:00
parent 70c4100350
commit eb8c15075a
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ export default React.createClass({
// Append scalar_token as a query param if not already present
this._scalarClient.scalarToken = token;
const u = url.parse(this.props.url);
const params = qs(u.search);
const params = qs.parse(u.search);
if (!params.scalar_token) {
params.scalar_token = encodeURIComponent(token);
u.search = qs.stringify(params);