@capillarytech/creatives-library 7.17.216 → 7.17.217

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.216",
4
+ "version": "7.17.217",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -442,7 +442,7 @@ export class Creatives extends React.Component {
442
442
  } = {},
443
443
  } = templateData;
444
444
  const mediaParams = {};
445
- const { url = '', previewUrl = '', docParams = {}, footer = '', headerVarMapped = {}, headerTemplate = ''} = whatsappMedia;
445
+ const { url = '', previewUrl = '', docParams = {}, footer = '', headerVarMapped = {}, headerTemplate = ''} = whatsappMedia || {};
446
446
  switch (mediaType) {
447
447
  case (WHATSAPP_MEDIA_TYPES.IMAGE):
448
448
  mediaParams.imageUrl = url;