@capillarytech/creatives-library 8.0.106 → 8.0.107-alpha.0

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": "8.0.106",
4
+ "version": "8.0.107-alpha.0",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -2623,7 +2623,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
2623
2623
  const previewContent = formData[0] &&
2624
2624
  selectedLanguages &&
2625
2625
  formData[0][selectedLanguages[0]] &&
2626
- formData[0][selectedLanguages[0]]['template-content'];
2626
+ (formData[0][selectedLanguages[0]]['template-content'] === '' ? _.get(this.props, 'Templates.BEETemplate.versions.base.template-content', '') : formData[0][selectedLanguages[0]]['template-content']);
2627
2627
  const previewSubject = formData['template-subject'];
2628
2628
  const testOrPreviewProps = {channel: EMAIL, content: previewContent, subject: previewSubject};
2629
2629
  const { onPreviewContentClicked, onTestContentClicked } = this.props;