@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/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: