@capillarytech/creatives-library 7.17.70 → 7.17.72

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": "7.17.70",
4
+ "version": "7.17.72",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/utils/common.js CHANGED
@@ -251,8 +251,7 @@ export function transformBadgeTags(badgeDetails = [], allTags) {
251
251
  badgeDetails.forEach((offer) => {
252
252
  const { badgesMetaId, badgeName } = offer || {};
253
253
  const badgeSubTags = {};
254
- // eslint-disable-next-line no-unused-expressions
255
- badgeTagsKeys?.forEach((badgeTagKey) => {
254
+ badgeTagsKeys.forEach((badgeTagKey) => {
256
255
  const badgeSubTagsObj = withBadgeId(allTags?.Badge?.subtags?.[badgeTagKey], badgesMetaId);
257
256
  badgeSubTags[badgeTagKey] = badgeSubTagsObj;
258
257
  });
@@ -590,13 +590,14 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
590
590
  name: this.state.searchText,
591
591
  sortBy: this.state.sortBy,
592
592
  };
593
- }
593
+ }
594
594
 
595
- const {name, sourceAccountIdentifier, configs: {
595
+ const {name, sourceAccountIdentifier, configs } = weCrmAccountsList?.[0] || {};
596
+ const {
596
597
  token,
597
598
  wecrm_app_id,
598
599
  wecrm_token
599
- } } = weCrmAccountsList?.[0];
600
+ } = configs || {};
600
601
  if (weCrmChannels.includes(selectedChannel)) {
601
602
  if ([WHATSAPP_LOWERCASE].includes(selectedChannel)) {
602
603
  if (hostName === '') {