@capillarytech/creatives-library 8.0.317 → 8.0.318

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": "8.0.317",
4
+ "version": "8.0.318",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -776,8 +776,8 @@ export class Creatives extends React.Component {
776
776
  content: {
777
777
  RCS: {
778
778
  rcsContent: {
779
- ...(accountId && !isFullMode && { accountId }),
780
779
  ...rcsContent,
780
+ ...(accountId && !isFullMode && { accountId }),
781
781
  cardContent: [
782
782
  {
783
783
  ...cardContent,
@@ -608,8 +608,10 @@ export const Rcs = (props) => {
608
608
  const mediaData = get(details, 'versions.base.content.RCS.rcsContent.cardContent[0].media', '');
609
609
  const cardSettings = get(details, 'versions.base.content.RCS.rcsContent.cardSettings', '');
610
610
  setMediaData(mediaData, mediaType, cardSettings);
611
- const rcsAccountId = get(details, 'versions.base.content.RCS.rcsContent.accountId', '');
612
- setRcsAccount(rcsAccountId);
611
+ if (details?.edit) {
612
+ const rcsAccountId = get(details, 'versions.base.content.RCS.rcsContent.accountId', '');
613
+ setRcsAccount(rcsAccountId);
614
+ }
613
615
  }
614
616
  }, [rcsData, templateData, isFullMode, isEditFlow]);
615
617