@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.
- package/package.json +1 -1
- package/services/api.js +1 -1
package/package.json
CHANGED
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
|
|