Merge pull request #949 from elitzer2/fix-channel-template-autofill

Fixes the autofill of campaign from cloned template when created via channel
This commit is contained in:
Tomas Bures 2020-08-31 07:18:21 +02:00 committed by GitHub
commit 902f9995d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,7 +327,7 @@ export default class CUD extends Component {
data.source = channel.source;
if (channel.source === CampaignSource.CUSTOM_FROM_TEMPLATE) {
data.data_sourceTemplate = channel.sourceTemplate;
data.data_sourceTemplate = channel.data.sourceTemplate;
} else if (channel.source === CampaignSource.CUSTOM_FROM_CAMPAIGN) {
data.data_sourceCampaign = channel.data.sourceCampaign;