@capillarytech/creatives-library 0.1.4 → 0.1.5
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.
|
@@ -709,9 +709,6 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
709
709
|
if (this.props.params.id) {
|
|
710
710
|
this.props.actions.getTemplateDetails(this.props.params.id, 'email');
|
|
711
711
|
}
|
|
712
|
-
if (this.props.location.query.module === "library" && this.props.templateData) {
|
|
713
|
-
this.props.templatesActions.resetTemplateData();
|
|
714
|
-
}
|
|
715
712
|
});
|
|
716
713
|
}
|
|
717
714
|
// formData[0] = {
|
|
@@ -753,6 +750,9 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
753
750
|
|
|
754
751
|
componentWillReceiveProps(nextProps) {
|
|
755
752
|
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
|
// }
|