From ca81b6dfafd4b5c33b12c0655ee1ee92ad84de59 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 24 Nov 2017 11:49:01 +0200 Subject: [PATCH] fix: don't display operations without tags as tag items in menu --- src/services/MenuBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/MenuBuilder.ts b/src/services/MenuBuilder.ts index 8387de2f8c..c6d7337a05 100644 --- a/src/services/MenuBuilder.ts +++ b/src/services/MenuBuilder.ts @@ -120,7 +120,7 @@ export class MenuBuilder { // don't put empty tag into content, instead put its operations if (tag.name === '') { - let items = this.getOperationsItems(parser, undefined, tag, item.depth, options); + let items = this.getOperationsItems(parser, undefined, tag, item.depth + 1, options); res.push(...items); continue; }