@capillarytech/creatives-library 0.1.17 → 0.1.18

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.
@@ -468,7 +468,7 @@ export class WeChat extends React.Component { // eslint-disable-line react/prefe
468
468
  }
469
469
  });
470
470
  }
471
- if (nextProps.location.query.type === "embedded" && nextProps.location.query.module === "library" && nextProps.templateData) {
471
+ if (nextProps.location.query.type === "embedded" && nextProps.location.query.module === "library" && nextProps.templateData && nextProps.templateData.versions) { // Edit of already added message in library mode
472
472
  this.setState({editTemplateData: nextProps.templateData}, () => {
473
473
  this.setEditData();
474
474
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "0.1.17",
4
+ "version": "0.1.18",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",