@capillarytech/creatives-library 7.17.120-alpha.0 → 7.17.121-alpha.0

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.120-alpha.0",
4
+ "version": "7.17.121-alpha.0",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -1500,8 +1500,8 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
1500
1500
  // and is not found in the formElements array, then the property is removed from the object in tempFormData.
1501
1501
  });
1502
1502
  }
1503
- // If 'template-name' was deleted, re-add it to tempFormData
1504
- if (!Object.prototype.hasOwnProperty.call(tempFormData, 'template-name')) {
1503
+ // If 'template-name' was deleted, re-add it to tempFormData for mobilepush channel
1504
+ if (!Object.prototype.hasOwnProperty.call(tempFormData, 'template-name') && this.props.schema.channel.toUpperCase() === MOBILE_PUSH) {
1505
1505
  tempFormData['template-name'] = templateNameValue;
1506
1506
  }
1507
1507
  formData = _.cloneDeep(tempFormData);