@capillarytech/creatives-library 3.1.4 → 3.1.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": "3.1.4",
4
+ "version": "3.1.5",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -164,6 +164,9 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
164
164
  if (this.props.location.query.type === 'embedded' && this.isEnabledInLibraryModule("setLocale")) {
165
165
  this.setLocale();
166
166
  }
167
+ if (this.props.location.query.type === 'embedded') {
168
+ this.props.actions.resetAccount();
169
+ }
167
170
  if (this.state.channel.toLowerCase() === 'line' || this.state.channel.toLowerCase() === 'sms' || this.state.channel.toLowerCase() === 'email' || this.state.channel.toLowerCase() === 'ebill' || ((this.state.channel.toLowerCase() === 'wechat' || this.state.channel.toLowerCase() === 'mobilepush') && !isEmpty(this.props.Templates.selectedWeChatAccount))) {
168
171
  const queryParams = {
169
172
  // name: this.state.searchText,
@@ -378,7 +381,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
378
381
  window.removeEventListener("message", this.handleFrameTasks);
379
382
  this.props.actions.resetTemplateStoreData();
380
383
  this.props.globalActions.clearMetaEntities();
381
- this.props.actions.resetAccount();
384
+ // this.props.actions.resetAccount();
382
385
  // this.setState({defaultAccount: false});
383
386
  }
384
387