@undp/carbon-library 1.0.292-CARBON-419.0 → 1.0.292-CARBON-419.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6654,7 +6654,9 @@ var AddNewCompanyComponent = function (props) {
6654
6654
  response = _a.sent();
6655
6655
  minkey = Object.keys(exports.Ministry)[Object.values(exports.Ministry).indexOf(min)];
6656
6656
  if (response.data.length === ministryOrgs[minkey].length) {
6657
- excludingmin_1.push(min);
6657
+ if (!isUpdate && min !== initialMinistry) {
6658
+ excludingmin_1.push(min);
6659
+ }
6658
6660
  }
6659
6661
  _a.label = 4;
6660
6662
  case 4:
@@ -15243,7 +15245,7 @@ var ProgrammeCreationComponent = function (props) {
15243
15245
  ] },
15244
15246
  React.createElement(antd.Select, { size: "large", loading: loadingList }, ministryList.map(function (organisation) {
15245
15247
  return organisation.govDep && (React.createElement(antd.Select.Option, { key: organisation.companyId, value: organisation.taxId }, organisation.name +
15246
- "-" +
15248
+ " - " +
15247
15249
  Object.keys(exports.GovDepartment)[Object.values(exports.GovDepartment).indexOf(organisation.govDep)]));
15248
15250
  }))),
15249
15251
  React.createElement(antd.Form.Item, { label: t("addProgramme:ownership"), className: "ownership-percent", name: "implementPercentage", labelCol: { span: 24 }, wrapperCol: { span: 24 }, required: true, initialValue: "Implementing" },