@capillarytech/creatives-library 9.0.23 → 9.0.24
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
|
@@ -197,9 +197,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
197
197
|
// Embedded campaign content is authoritative via the inline templateData
|
|
198
198
|
// prop; fetching by id would pull reusable-template data and drop the
|
|
199
199
|
// inline BEE json_content. Only fetch for real reusable-template edits.
|
|
200
|
-
if (this.props.params.id && this.props.location.query.type !== 'embedded') {
|
|
201
200
|
this.props.actions.getTemplateDetails(this.props.params.id, 'email');
|
|
202
|
-
}
|
|
203
201
|
});
|
|
204
202
|
}
|
|
205
203
|
// formData[0] = {
|
|
@@ -462,7 +460,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
462
460
|
}
|
|
463
461
|
}
|
|
464
462
|
|
|
465
|
-
if (this.state.isEdit && !this.state.editDataSet && !_.isEmpty(nextProps.Email.templateDetails) && !_.isEmpty(this.state.schema)
|
|
463
|
+
if (this.state.isEdit && !this.state.editDataSet && !_.isEmpty(nextProps.Email.templateDetails) && !_.isEmpty(this.state.schema)) {
|
|
466
464
|
this.setState({editDataSet: true}, () => {
|
|
467
465
|
this.setEditData(nextProps.Email.templateDetails);
|
|
468
466
|
// Update template name in parent if available
|