@capillarytech/creatives-library 0.1.5 → 0.1.7

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.
@@ -716,6 +716,9 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
716
716
  // };
717
717
  // if (this.props.Templates.CmsSettings) {}
718
718
  const isEdmSupport = (this.props.location.query.isEdmSupport !== "false") || false;
719
+ if (this.props.location.query.module === "library" && this.props.templateData) {
720
+ this.props.templatesActions.resetTemplateData();
721
+ }
719
722
  if (!_.isEmpty(this.props.Templates.edmTemplate) && this.props.Templates.edmTemplate.versions.base.is_drag_drop) {
720
723
  this.setState({isDragDrop: true});
721
724
  if (this.props.params.id) {
@@ -750,9 +753,6 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
750
753
 
751
754
  componentWillReceiveProps(nextProps) {
752
755
  console.log('setting new language Next Props email', nextProps, this.state);
753
- if (this.props.location.query.module === "library" && this.props.templateData) {
754
- this.props.templatesActions.resetTemplateData();
755
- }
756
756
  // if (this.props.location.query.type === 'embedded') {
757
757
  // this.showNext();
758
758
  // }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",