From 31b44c407efc0ab325f59c1bdc172e1b52c1d35d Mon Sep 17 00:00:00 2001 From: Roman Gotsiy Date: Wed, 4 Nov 2015 22:39:05 +0200 Subject: [PATCH] Fix minor issue with menu building --- lib/utils/SchemaManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/SchemaManager.js b/lib/utils/SchemaManager.js index 31c19113..18a41bf6 100644 --- a/lib/utils/SchemaManager.js +++ b/lib/utils/SchemaManager.js @@ -89,7 +89,7 @@ export default class SchemaManager { buildMenuTree() { let tag2MethodMapping = new Map(); - let definedTags = this._schema.tags; + let definedTags = this._schema.tags || []; // add tags into map to preserve order for (let tag of definedTags) { tag2MethodMapping.set(tag.name, {