@capillarytech/creatives-library 7.17.70 → 7.17.71
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
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
|
-
|
|
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
|
});
|
|
@@ -592,11 +592,12 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
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
|
-
}
|
|
600
|
+
} = configs || {};
|
|
600
601
|
if (weCrmChannels.includes(selectedChannel)) {
|
|
601
602
|
if ([WHATSAPP_LOWERCASE].includes(selectedChannel)) {
|
|
602
603
|
if (hostName === '') {
|