@capillarytech/creatives-library 7.10.35 → 7.10.37

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.
@@ -2733,11 +2733,12 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
2733
2733
  } else {
2734
2734
  this.setState({injectedTags: data.tags});
2735
2735
  }
2736
- this.props.globalActions.setInjectedTags(data.tags);
2736
+ if (data.tags) {
2737
+ this.props.globalActions.setInjectedTags(data.tags);
2738
+ }
2737
2739
  }
2738
2740
 
2739
2741
  startLoading = (ifEdit) => {
2740
-
2741
2742
  if (ifEdit) {
2742
2743
  this.setState({loading: true});
2743
2744
  }
@@ -239,7 +239,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
239
239
  this.setTemplateOptions(nextProps.Edit.mobilepushTemplates);
240
240
  }
241
241
  }
242
- if (nextProps.templateDetails && nextProps.templateDetails.name && _.isEmpty(this.state.editData) && (this.props.location.query.type !== 'embedded' || (!_.isEmpty(this.state.fullSchema) && selectedWeChatAccount))) {
242
+ if (nextProps.templateDetails && nextProps.templateDetails.name && (_.isEmpty(this.state.editData) || !this.state.editData.name) && (this.props.location.query.type !== 'embedded' || (!_.isEmpty(this.state.fullSchema) && selectedWeChatAccount))) {
243
243
  this.props = nextProps;
244
244
  const mode = nextProps.templateDetails.definition ? nextProps.templateDetails.definition.mode : nextProps.templateDetails.mode;
245
245
  const schema = mode === "text" ? this.state.fullSchema.textSchema : this.state.fullSchema.imageSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.10.35",
4
+ "version": "7.10.37",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -33,7 +33,7 @@ export default css`
33
33
  max-width: 564px;
34
34
  }
35
35
 
36
- .ad-section {
36
+ .fb-ad-manager-section {
37
37
  margin-bottom: ${CAP_SPACE_44};
38
38
  }
39
39
 
@@ -357,7 +357,7 @@ const Facebook = (props) => {
357
357
  />
358
358
  </div>
359
359
 
360
- <div className="ad-section">
360
+ <div className="fb-ad-manager-section">
361
361
  <CapHeading type="h4" style={{marginBottom: 17}}>
362
362
  <FormattedMessage
363
363
  {...messages.adManagerHeading}
@@ -789,7 +789,7 @@ export const SmsTraiCreate = (props) => {
789
789
  <CapLabel.CapLabelInline type="label9">
790
790
  {fileMeta.name}
791
791
  </CapLabel.CapLabelInline>
792
- <CapLabel.CapLabelInline
792
+ {saveTemplate && <CapLabel.CapLabelInline
793
793
  type="label1"
794
794
  className="number-of-records"
795
795
  >
@@ -798,7 +798,7 @@ export const SmsTraiCreate = (props) => {
798
798
  value: fileData.data.length - 1,
799
799
  })}
800
800
  )
801
- </CapLabel.CapLabelInline>
801
+ </CapLabel.CapLabelInline>}
802
802
  </CapColumn>
803
803
  {errorText && (
804
804
  <>
@@ -37,7 +37,7 @@ export default defineMessages({
37
37
  },
38
38
  smsEditNotification: {
39
39
  id: `${prefix}.smsEditNotification`,
40
- defaultMessage: 'Trai SMS template updated successfully',
40
+ defaultMessage: 'Sms template updated successfully',
41
41
  },
42
42
  textAreaError: {
43
43
  id: `${prefix}.textAreaError`,