@undp/carbon-library 1.0.134-CARBON-332.2 → 1.0.134-CARBON-332.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -18136,9 +18136,9 @@ var SocialEnvironmentalRisk = function (props) {
18136
18136
  var checkHeaderAvailability = function () {
18137
18137
  SocialEnvironmentalDetails.forEach(function (section) {
18138
18138
  section.isTitleVisible = false;
18139
- section.forEach(function (subSection) {
18139
+ section.subItems.forEach(function (subSection) {
18140
18140
  subSection.isTitleVisible = false;
18141
- subSection.forEach(function (element) {
18141
+ subSection.subItems.forEach(function (element) {
18142
18142
  if (SocialEnvironmentalRiskData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name)) {
18143
18143
  subSection.isTitleVisible = true;
18144
18144
  }