@capillarytech/creatives-library 7.17.142 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.142",
4
+ "version": "7.17.144",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -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'] === "") {