@capillarytech/creatives-library 6.7.0 → 6.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/services/api.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "6.7.0",
4
+ "version": "6.7.1",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/services/api.js CHANGED
@@ -239,7 +239,7 @@ export const getTemplateDetails = ({id, channel}) => {
239
239
 
240
240
  export const getAllTemplates = ({channel, queryParams}) => {
241
241
  console.log('in api.js', channel, queryParams);
242
- const url = `${API_ENDPOINT}/templates/${channel}?query=${JSON.stringify(queryParams)}`;
242
+ const url = `${API_ENDPOINT}/templates/${channel}?query=${encodeURIComponent(JSON.stringify(queryParams))}`;
243
243
  return request(url, getAPICallObject('GET'));
244
244
  };
245
245