diff --git a/src/components/SideMenu/MenuItem.tsx b/src/components/SideMenu/MenuItem.tsx index 376e9afa..88e0ac32 100644 --- a/src/components/SideMenu/MenuItem.tsx +++ b/src/components/SideMenu/MenuItem.tsx @@ -53,7 +53,7 @@ export class MenuItem extends React.Component { {item.sidebarLabel} {this.props.children} - {(item.depth > 0 && item.items.length > 0 && ( + {(item.items.length > 0 && ( )) || null} diff --git a/src/services/models/Group.model.ts b/src/services/models/Group.model.ts index e68f1724..fc496e44 100644 --- a/src/services/models/Group.model.ts +++ b/src/services/models/Group.model.ts @@ -56,9 +56,9 @@ export class GroupModel implements IMenuItem { this.parent = parent; this.externalDocs = (tagOrGroup as OpenAPITag).externalDocs; - // groups are active (expanded) by default + // groups are active but not expanded by default if (this.type === 'group') { - this.expanded = true; + this.active = true; } } @@ -77,10 +77,6 @@ export class GroupModel implements IMenuItem { @action collapse() { - // disallow collapsing groups - if (this.type === 'group') { - return; - } this.expanded = false; }