@undp/carbon-library 1.0.135-CARBON-343.13 → 1.0.135-CARBON-343.14

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -23677,11 +23677,12 @@ var NdcDetailsComponent = function (props) {
23677
23677
  }); } });
23678
23678
  });
23679
23679
  function onAddNewNdcDetail() {
23680
+ var range = selectedTab.split("-");
23680
23681
  var newData = {
23681
- startDate: new Date("2014-12-24 23:12:00"),
23682
- endDate: new Date("2014-12-24 23:12:00"),
23683
- nationalPlanObj: "sample text2",
23684
- kpi: 34,
23682
+ startDate: new Date("".concat(Number(range[0]), "-01-24 23:12:00")),
23683
+ endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
23684
+ nationalPlanObj: t("ndc:enterNewPlanTxt"),
23685
+ kpi: 0,
23685
23686
  };
23686
23687
  setNdcDetailsData(__spreadArray(__spreadArray([], ndcDetailsData, true), [newData], false));
23687
23688
  }