@undp/carbon-library 1.0.136-support-section-changes.0 → 1.0.136-support-section-changes.2
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.
- package/dist/cjs/index.js +10 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -14088,6 +14088,7 @@ var InvestmentCreationComponent = function (props) {
|
|
|
14088
14088
|
});
|
|
14089
14089
|
}); };
|
|
14090
14090
|
React.useEffect(function () {
|
|
14091
|
+
console.log("state ---------------- > ", state);
|
|
14091
14092
|
if (!state) {
|
|
14092
14093
|
onNavigateToProgrammeManagementView();
|
|
14093
14094
|
return;
|
|
@@ -14095,11 +14096,17 @@ var InvestmentCreationComponent = function (props) {
|
|
|
14095
14096
|
if (state === null || state === void 0 ? void 0 : state.record) {
|
|
14096
14097
|
setData(state === null || state === void 0 ? void 0 : state.record);
|
|
14097
14098
|
}
|
|
14099
|
+
else {
|
|
14100
|
+
setData({});
|
|
14101
|
+
}
|
|
14098
14102
|
}, []);
|
|
14099
14103
|
React.useEffect(function () {
|
|
14100
|
-
|
|
14104
|
+
var keys = Object.keys(data);
|
|
14105
|
+
if (keys.length > 0) {
|
|
14106
|
+
getOrganisationsDetails();
|
|
14107
|
+
}
|
|
14101
14108
|
}, [data]);
|
|
14102
|
-
if (!data
|
|
14109
|
+
if (!data) {
|
|
14103
14110
|
return React.createElement(Loading, null);
|
|
14104
14111
|
}
|
|
14105
14112
|
var companyName = {};
|
|
@@ -14408,7 +14415,7 @@ var InvestmentCreationComponent = function (props) {
|
|
|
14408
14415
|
React.createElement("div", { className: "step-count" }, "02"),
|
|
14409
14416
|
React.createElement("div", { className: "title" }, t("programme:ownership")))),
|
|
14410
14417
|
description: current === 1 && (React.createElement("div", null,
|
|
14411
|
-
React.createElement("div", { className: "programme-sought-form-container ownership-container" }, (
|
|
14418
|
+
React.createElement("div", { className: "programme-sought-form-container ownership-container" }, Object.keys(data).length > 0 &&
|
|
14412
14419
|
React.createElement("div", { className: "programme-sought-form" },
|
|
14413
14420
|
React.createElement(antd.Form, { labelCol: { span: 20 }, wrapperCol: { span: 24 }, form: formTwo, name: "investment-sought", className: "investment-sought-form", layout: "vertical", requiredMark: true, onChange: onPercentageChange, onFinish: submitInvestment }, data === null || data === void 0 ? void 0 :
|
|
14414
14421
|
data.companyId.map(function (companyId, index) {
|