@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 CHANGED
@@ -14097,13 +14097,15 @@ var InvestmentCreationComponent = function (props) {
14097
14097
  setData(state === null || state === void 0 ? void 0 : state.record);
14098
14098
  }
14099
14099
  else {
14100
- setData({});
14100
+ setData({ ownership: true });
14101
14101
  }
14102
14102
  }, []);
14103
14103
  React.useEffect(function () {
14104
- var keys = Object.keys(data);
14105
- if (keys.length > 0) {
14106
- getOrganisationsDetails();
14104
+ if (data) {
14105
+ var keys = Object.keys(data);
14106
+ if (keys[0] !== "ownership") {
14107
+ getOrganisationsDetails();
14108
+ }
14107
14109
  }
14108
14110
  }, [data]);
14109
14111
  if (!data) {