@capillarytech/creatives-library 6.6.0 → 6.6.5

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": "6.6.0",
4
+ "version": "6.6.5",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -343,16 +343,16 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
343
343
  licenseCode: selectedWeChatAccount.sourceAccountIdentifier,
344
344
  };
345
345
  if (this.props.location.query && this.props.location.query.module !== 'dvs') {
346
- obj.definition.mode = get(this, 'props.Edit.templateDetails.mode', '') || get(this, 'props.Edit.templateDetails.definition.mode', '');
346
+ obj.definition.mode = this.props.Edit.templateDetails.mode || get(this, 'props.Edit.templateDetails.definition.mode');
347
347
  }
348
348
  const android = {};
349
- Object.keys(formData[0] || {}).forEach((data) => {
349
+ Object.keys(formData[0]).forEach((data) => {
350
350
  if (!!formData[0][data] && data !== "tabKey") {
351
351
  android[data] = formData[0][data];
352
352
  }
353
353
  });
354
354
  const ios = {};
355
- Object.keys(formData[1] || {}).forEach((data) => {
355
+ Object.keys(formData[1]).forEach((data) => {
356
356
  if (!!formData[1][data] && data !== "tabKey") {
357
357
  ios[data] = formData[1][data];
358
358
  }