@undp/carbon-library 1.0.136-support-section-changes.3 → 1.0.136-support-section-changes.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -13997,12 +13997,13 @@ var InvestmentCreationComponent = function (props) {
13997
13997
  var formTwo = Form.useForm()[0];
13998
13998
  var post = useConnection().post;
13999
13999
  var _b = useState(false), loading = _b[0], setLoading = _b[1];
14000
- var _c = useState(false), loadingList = _c[0], setLoadingList = _c[1];
14001
- var _d = useState(0), current = _d[0], setCurrent = _d[1];
14002
- var _e = useState(0), currentPercTotal = _e[0], setCurrentPercTotal = _e[1];
14003
- var _f = useState([]), organisationsList = _f[0], setOrganisationList = _f[1];
14004
- var _g = useState([]), instrument = _g[0], setInstrument = _g[1];
14005
- var _h = useState(), stepOneData = _h[0], setStepOneData = _h[1];
14000
+ var _c = useState("New"); _c[0]; _c[1];
14001
+ var _d = useState(false), loadingList = _d[0], setLoadingList = _d[1];
14002
+ var _e = useState(0), current = _e[0], setCurrent = _e[1];
14003
+ var _f = useState(0), currentPercTotal = _f[0], setCurrentPercTotal = _f[1];
14004
+ var _g = useState([]), organisationsList = _g[0], setOrganisationList = _g[1];
14005
+ var _h = useState([]), instrument = _h[0], setInstrument = _h[1];
14006
+ var _j = useState(), stepOneData = _j[0], setStepOneData = _j[1];
14006
14007
  var instrumentOptions = Object.keys(Instrument).map(function (k, index) { return ({
14007
14008
  label: addSpaces(Object.values(Instrument)[index]),
14008
14009
  value: Object.values(Instrument)[index],
@@ -14068,7 +14069,6 @@ var InvestmentCreationComponent = function (props) {
14068
14069
  });
14069
14070
  }); };
14070
14071
  useEffect(function () {
14071
- console.log("state ---------------- > ", state);
14072
14072
  if (!state) {
14073
14073
  onNavigateToProgrammeManagementView();
14074
14074
  return;
@@ -14092,12 +14092,14 @@ var InvestmentCreationComponent = function (props) {
14092
14092
  return React.createElement(Loading, null);
14093
14093
  }
14094
14094
  var companyName = {};
14095
- for (var _i = 0, _j = data === null || data === void 0 ? void 0 : data.company; _i < _j.length; _i++) {
14096
- var company = _j[_i];
14097
- companyName[company === null || company === void 0 ? void 0 : company.companyId] = company;
14098
- }
14099
- if (!data.proponentPercentage) {
14100
- data.proponentPercentage = [100];
14095
+ if (data && Object.keys(data)[0] !== "ownership") {
14096
+ for (var _i = 0, _k = data === null || data === void 0 ? void 0 : data.company; _i < _k.length; _i++) {
14097
+ var company = _k[_i];
14098
+ companyName[company === null || company === void 0 ? void 0 : company.companyId] = company;
14099
+ }
14100
+ if (!data.proponentPercentage) {
14101
+ data.proponentPercentage = [100];
14102
+ }
14101
14103
  }
14102
14104
  var nextOne = function (val) {
14103
14105
  setCurrent(current + 1);
@@ -14188,9 +14190,10 @@ var InvestmentCreationComponent = function (props) {
14188
14190
  required: true,
14189
14191
  },
14190
14192
  ] },
14191
- React.createElement(Radio.Group, { size: "large", defaultValue: "New" }, Object.values(InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
14193
+ React.createElement(Radio.Group, { size: "large", value: "New" }, Object.values(InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
14192
14194
  React.createElement(Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
14193
- return deselectOnClick(e, "type");
14195
+ console.log(e);
14196
+ deselectOnClick(e, "type");
14194
14197
  } }, t("programme:" + k)))); }))))),
14195
14198
  React.createElement(Row, { className: "row", gutter: [16, 16] },
14196
14199
  React.createElement(Col, { xl: 12, md: 24 },