@capillarytech/creatives-library 7.17.143 → 7.17.144
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
|
@@ -162,12 +162,11 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
162
162
|
const templateName = formData['template-name'];
|
|
163
163
|
const defaultTemplateName= get(defaultData, 'template-name') ?? ""
|
|
164
164
|
//sync back template name from from editing in create flow to wrapper when edited
|
|
165
|
-
if (isEmpty(templateName) && defaultTemplateName) {
|
|
166
|
-
syncTemplateName(defaultTemplateName);
|
|
167
|
-
} else {
|
|
168
|
-
syncTemplateName(templateName);
|
|
169
|
-
}
|
|
170
165
|
|
|
166
|
+
if(syncTemplateName){
|
|
167
|
+
syncTemplateName(isEmpty(templateName) && defaultTemplateName?defaultTemplateName:templateName)
|
|
168
|
+
}
|
|
169
|
+
|
|
171
170
|
|
|
172
171
|
// copy content code
|
|
173
172
|
// if (newFormData[0]['copy-iphone-content'] === "") {
|