Skip to content

Commit 4366a0d

Browse files
antonkomarevRomanHotsiy
authored andcommitted
fix: ignore empty x-tagGroups array (#869)
1 parent 2f65f05 commit 4366a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/MenuBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class MenuBuilder {
4343
const items: ContentItemModel[] = [];
4444
const tagsMap = MenuBuilder.getTagsWithOperations(spec);
4545
items.push(...MenuBuilder.addMarkdownItems(spec.info.description || '', options));
46-
if (spec['x-tagGroups']) {
46+
if (spec['x-tagGroups'] && spec['x-tagGroups'].length > 0) {
4747
items.push(
4848
...MenuBuilder.getTagGroupsItems(parser, undefined, spec['x-tagGroups'], tagsMap, options),
4949
);

0 commit comments

Comments
 (0)