Fix minor issue with menu building

This commit is contained in:
Roman Gotsiy 2015-11-04 22:39:05 +02:00
parent 6af3ab74ed
commit 31b44c407e

View File

@ -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, {