@adlfe/campaign-management-library 2.10.6 → 2.11.1

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.
@@ -2692,10 +2692,15 @@ var NewCampaignComponent = /** @class */ (function () {
2692
2692
  return;
2693
2693
  }
2694
2694
  var bodyReq = new GeneralInformationWAReqModel().clone(__assign({}, this.generalInformationData));
2695
+ var payloadValue = bodyReq.convert();
2696
+ if (payloadValue.template && this.generalInformationData.template) {
2697
+ payloadValue.template.type =
2698
+ payloadValue.template.type || this.generalInformationData.template.category;
2699
+ }
2695
2700
  var parameterList = [
2696
2701
  {
2697
2702
  name: 'data',
2698
- value: bodyReq.convert(),
2703
+ value: payloadValue,
2699
2704
  in: 'body',
2700
2705
  type: 'object',
2701
2706
  withoutKeyData: true,
@@ -5324,7 +5329,6 @@ var NewNumberBasesComponent = /** @class */ (function () {
5324
5329
  this.toastr.error('Upload media failed, max size 30mb');
5325
5330
  return;
5326
5331
  }
5327
- // this.uploadMediaService(file[0]);
5328
5332
  this.getPresignedUrlService(file[0]);
5329
5333
  };
5330
5334
  NewNumberBasesComponent.prototype.getPresignedUrlService = function (file) {