@undp/carbon-library 1.0.136-support-section-changes.1 → 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 CHANGED
@@ -14101,9 +14101,12 @@ var InvestmentCreationComponent = function (props) {
14101
14101
  }
14102
14102
  }, []);
14103
14103
  React.useEffect(function () {
14104
- getOrganisationsDetails();
14104
+ var keys = Object.keys(data);
14105
+ if (keys.length > 0) {
14106
+ getOrganisationsDetails();
14107
+ }
14105
14108
  }, [data]);
14106
- if (!data || !(state === null || state === void 0 ? void 0 : state.ownership)) {
14109
+ if (!data) {
14107
14110
  return React.createElement(Loading, null);
14108
14111
  }
14109
14112
  var companyName = {};
@@ -14412,7 +14415,7 @@ var InvestmentCreationComponent = function (props) {
14412
14415
  React.createElement("div", { className: "step-count" }, "02"),
14413
14416
  React.createElement("div", { className: "title" }, t("programme:ownership")))),
14414
14417
  description: current === 1 && (React.createElement("div", null,
14415
- React.createElement("div", { className: "programme-sought-form-container ownership-container" }, (state === null || state === void 0 ? void 0 : state.ownership) !== true &&
14418
+ React.createElement("div", { className: "programme-sought-form-container ownership-container" }, Object.keys(data).length > 0 &&
14416
14419
  React.createElement("div", { className: "programme-sought-form" },
14417
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 :
14418
14421
  data.companyId.map(function (companyId, index) {