@capillarytech/creatives-library 7.10.76 → 7.11.2
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
|
@@ -368,7 +368,6 @@ export class Creatives extends React.Component {
|
|
|
368
368
|
case constants.WHATSAPP: {
|
|
369
369
|
const {
|
|
370
370
|
templateConfigs: {
|
|
371
|
-
id,
|
|
372
371
|
name,
|
|
373
372
|
template,
|
|
374
373
|
varMapped,
|
|
@@ -378,7 +377,6 @@ export class Creatives extends React.Component {
|
|
|
378
377
|
} = {},
|
|
379
378
|
} = templateData;
|
|
380
379
|
creativesTemplateData = {
|
|
381
|
-
_id: id,
|
|
382
380
|
type: constants.WHATSAPP,
|
|
383
381
|
edit: true,
|
|
384
382
|
name,
|
|
@@ -307,7 +307,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
307
307
|
}
|
|
308
308
|
setMobilePushAccountOptions = (accounts, newAccountId) => {
|
|
309
309
|
let accId = newAccountId || this.props.location.query.account_id;
|
|
310
|
-
if (this.props.
|
|
310
|
+
if (this.props.type !== "loyalty" && this.props.location.query.module !== "dvs") {
|
|
311
311
|
accId = Number(accId);
|
|
312
312
|
}
|
|
313
313
|
const formData = _.cloneDeep(this.state.formData);
|
|
@@ -315,7 +315,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
315
315
|
if (accId) {
|
|
316
316
|
_.forEach(accounts, (account) => {
|
|
317
317
|
let acccountId = account.id;
|
|
318
|
-
if ((this.props.
|
|
318
|
+
if ((this.props.type === "loyalty" || this.props.location.query.module === "dvs") && typeof accId === 'string') {
|
|
319
319
|
acccountId = account.sourceAccountIdentifier;
|
|
320
320
|
}
|
|
321
321
|
if (acccountId === accId) {
|