Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
@phenomic/api-client: Fix encoding issue for query with path + id
Browse files Browse the repository at this point in the history
Closes #1168
  • Loading branch information
MoOx committed Sep 26, 2017
1 parent f9ce59c commit 34a223f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-client/src/query.js
Expand Up @@ -12,8 +12,8 @@ function query(config: PhenomicQueryConfig): PhenomicQueryConfig {
// note that during static build, we initiate the query with no id
if (config.hasOwnProperty("id")) {
return {
path: config.path && encodeURIComponent(config.path),
id: config.id && encodeURIComponent(config.id)
path: config.path,
id: config.id
};
}
return {
Expand Down

0 comments on commit 34a223f

Please sign in to comment.