@agorapulse/ui-components 20.3.1 → 20.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1182,6 +1182,9 @@ class NavSelectorBuilder {
1182
1182
  }
1183
1183
  static buildGroup(node, { focusable, multipleModeEnabled, level, idx, totalNumberOfGroups, detailsDisplayedLimit, }) {
1184
1184
  const children = this.buildGroupChildren(node, { multipleModeEnabled, groupLevel: level, focusable, detailsDisplayedLimit });
1185
+ if (!children.length) {
1186
+ return null;
1187
+ }
1185
1188
  const displayTokenInvalid = children.some(({ displayTokenInvalid }) => displayTokenInvalid);
1186
1189
  const selectedChildrenCount = children.filter(({ selected }) => selected).length;
1187
1190
  return {