@capillarytech/creatives-library 7.1.5 → 7.1.6
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
|
@@ -616,7 +616,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
616
616
|
'text-align': 'center',
|
|
617
617
|
"width": '140px',
|
|
618
618
|
"height": '20px',
|
|
619
|
-
"margin-left": "
|
|
619
|
+
"margin-left": "8px",
|
|
620
620
|
}}>
|
|
621
621
|
<p
|
|
622
622
|
style={{ 'font-size': '12px',
|
|
@@ -2358,6 +2358,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2358
2358
|
const response = {
|
|
2359
2359
|
action: "getFormData",
|
|
2360
2360
|
postAction: this.state.getFormDataValue || 'next',
|
|
2361
|
+
id : _.get(this.props, 'Email.templateDetails._id', ''),
|
|
2361
2362
|
value: this.transformFormData(passedData),
|
|
2362
2363
|
validity: this.state.isFormValid,
|
|
2363
2364
|
type: 'EMAIL',
|
|
@@ -122,7 +122,7 @@ const Viber = (props) => {
|
|
|
122
122
|
}, [viberData.selectedViberAccount]);
|
|
123
123
|
|
|
124
124
|
useEffect(() => {
|
|
125
|
-
if ((params && params.id) || templateData.edit) {
|
|
125
|
+
if ((params && params.id) || (templateData || {}).edit) {
|
|
126
126
|
const { viber: editViberContent = {} } = get(templateData, `versions.base.content`) || get(viber, `templateDetails.versions.base.content`) || {};
|
|
127
127
|
const editMessageTitle = (templateData || {}).name || get(viber, 'templateDetails.name');
|
|
128
128
|
updateTextMessageTitle(editMessageTitle);
|