@capillarytech/creatives-library 7.5.8 → 7.6.0
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
|
@@ -363,11 +363,11 @@ class Creatives extends React.Component {
|
|
|
363
363
|
const { Templates, templateData: templateDataProps } = this.props;
|
|
364
364
|
const { accountDetails: selectedAccountDetails, accountId: selectedAccountId } = templateDataProps || {};
|
|
365
365
|
const selectedViberAccount = Templates && Templates.selectedViberAccount;
|
|
366
|
-
const accountDetails =
|
|
366
|
+
const accountDetails = (selectedViberAccount ? JSON.stringify(selectedViberAccount) : selectedAccountDetails);
|
|
367
367
|
const accountId = selectedAccountId || (selectedViberAccount ? selectedViberAccount.id : '');
|
|
368
368
|
const { versions } = template.value;
|
|
369
369
|
const content = cloneDeep(versions.base.content);
|
|
370
|
-
content.scenarioKey = get(accountDetails, 'configs.scenario_key');
|
|
370
|
+
content.scenarioKey = accountDetails ? get(JSON.parse(accountDetails), 'configs.scenario_key') : "";
|
|
371
371
|
templateData = {
|
|
372
372
|
channel,
|
|
373
373
|
accountId,
|