Skip to content

Commit

Permalink
Adding the escape for either version
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenthedev committed Apr 7, 2016
1 parent 123986a commit e8954c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class StoreService {
// url-ify
Object.keys(params).forEach(k => {
this.log(k, {});
queryParams.set(k, typeof params[k] !== 'string' ? JSON.stringify(params[k]).replace(/\{/g, '%7B').replace(/\}/g, '%7D') : params[k]);
queryParams.set(k, (typeof params[k] !== 'string' ? JSON.stringify(params[k]) : params[k]).replace(/\{/g, '%7B').replace(/\}/g, '%7D'));
});

// Create request options
Expand Down

0 comments on commit e8954c8

Please sign in to comment.