awing-library 2.1.109 → 2.1.110

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.
@@ -216,6 +216,7 @@ var CreateOrEdit = function (props) {
216
216
  var getCampaignData = function () {
217
217
  if (campaignId) {
218
218
  return service.campaignsGet(campaignId).then(function (response) {
219
+ var _a;
219
220
  var campaignModel = response;
220
221
  if (componentStatus === Constant_1.Constants.CAMPAIGN_DETAIL) {
221
222
  //Đánh dấu những group/ad nào không được xoá
@@ -251,6 +252,9 @@ var CreateOrEdit = function (props) {
251
252
  Enum_2.AnalyticType.Authentication;
252
253
  });
253
254
  }
255
+ if (componentStatus === Constant_1.Constants.CAMPAIGN_CLONE && ((_a = campaignModel.campaignApprovals) === null || _a === void 0 ? void 0 : _a.length)) {
256
+ campaignModel.campaignApprovals = campaignModel.campaignApprovals.map(function (campaignApproval) { return (__assign(__assign({}, campaignApproval), { status: Enum_1.CampaignApprovalStatus.Draft })); });
257
+ }
254
258
  setCampaignData(campaignModel);
255
259
  });
256
260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.109",
3
+ "version": "2.1.110",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",