@undp/carbon-library 1.0.136-support-section-changes.0 → 1.0.136-support-section-changes.2
Sign up to get free protection for your applications and to get access to all the features.
- 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/esm/index.js
CHANGED
@@ -14068,6 +14068,7 @@ var InvestmentCreationComponent = function (props) {
|
|
14068
14068
|
});
|
14069
14069
|
}); };
|
14070
14070
|
useEffect(function () {
|
14071
|
+
console.log("state ---------------- > ", state);
|
14071
14072
|
if (!state) {
|
14072
14073
|
onNavigateToProgrammeManagementView();
|
14073
14074
|
return;
|
@@ -14075,11 +14076,17 @@ var InvestmentCreationComponent = function (props) {
|
|
14075
14076
|
if (state === null || state === void 0 ? void 0 : state.record) {
|
14076
14077
|
setData(state === null || state === void 0 ? void 0 : state.record);
|
14077
14078
|
}
|
14079
|
+
else {
|
14080
|
+
setData({});
|
14081
|
+
}
|
14078
14082
|
}, []);
|
14079
14083
|
useEffect(function () {
|
14080
|
-
|
14084
|
+
var keys = Object.keys(data);
|
14085
|
+
if (keys.length > 0) {
|
14086
|
+
getOrganisationsDetails();
|
14087
|
+
}
|
14081
14088
|
}, [data]);
|
14082
|
-
if (!data
|
14089
|
+
if (!data) {
|
14083
14090
|
return React.createElement(Loading, null);
|
14084
14091
|
}
|
14085
14092
|
var companyName = {};
|
@@ -14388,7 +14395,7 @@ var InvestmentCreationComponent = function (props) {
|
|
14388
14395
|
React.createElement("div", { className: "step-count" }, "02"),
|
14389
14396
|
React.createElement("div", { className: "title" }, t("programme:ownership")))),
|
14390
14397
|
description: current === 1 && (React.createElement("div", null,
|
14391
|
-
React.createElement("div", { className: "programme-sought-form-container ownership-container" }, (
|
14398
|
+
React.createElement("div", { className: "programme-sought-form-container ownership-container" }, Object.keys(data).length > 0 &&
|
14392
14399
|
React.createElement("div", { className: "programme-sought-form" },
|
14393
14400
|
React.createElement(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 :
|
14394
14401
|
data.companyId.map(function (companyId, index) {
|