Skip to content

Commit

Permalink
fix: ignore empty x-tagGroups array (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev authored and RomanHotsiy committed Mar 27, 2019
1 parent 2f65f05 commit 4366a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/MenuBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class MenuBuilder {
const items: ContentItemModel[] = [];
const tagsMap = MenuBuilder.getTagsWithOperations(spec);
items.push(...MenuBuilder.addMarkdownItems(spec.info.description || '', options));
if (spec['x-tagGroups']) {
if (spec['x-tagGroups'] && spec['x-tagGroups'].length > 0) {
items.push(
...MenuBuilder.getTagGroupsItems(parser, undefined, spec['x-tagGroups'], tagsMap, options),
);
Expand Down

0 comments on commit 4366a0d

Please sign in to comment.