@undp/carbon-library 1.0.292-CARBON-419.1 → 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/esm/index.js CHANGED
@@ -6633,7 +6633,9 @@ var AddNewCompanyComponent = function (props) {
6633
6633
  response = _a.sent();
6634
6634
  minkey = Object.keys(Ministry)[Object.values(Ministry).indexOf(min)];
6635
6635
  if (response.data.length === ministryOrgs[minkey].length) {
6636
- excludingmin_1.push(min);
6636
+ if (!isUpdate && min !== initialMinistry) {
6637
+ excludingmin_1.push(min);
6638
+ }
6637
6639
  }
6638
6640
  _a.label = 4;
6639
6641
  case 4: