@undp/carbon-library 1.0.136-support-section-changes.2 → 1.0.136-support-section-changes.3
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 +6 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -14077,13 +14077,15 @@ var InvestmentCreationComponent = function (props) {
|
|
|
14077
14077
|
setData(state === null || state === void 0 ? void 0 : state.record);
|
|
14078
14078
|
}
|
|
14079
14079
|
else {
|
|
14080
|
-
setData({});
|
|
14080
|
+
setData({ ownership: true });
|
|
14081
14081
|
}
|
|
14082
14082
|
}, []);
|
|
14083
14083
|
useEffect(function () {
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
|
|
14084
|
+
if (data) {
|
|
14085
|
+
var keys = Object.keys(data);
|
|
14086
|
+
if (keys[0] !== "ownership") {
|
|
14087
|
+
getOrganisationsDetails();
|
|
14088
|
+
}
|
|
14087
14089
|
}
|
|
14088
14090
|
}, [data]);
|
|
14089
14091
|
if (!data) {
|