Fix crash on undefined tag

This commit is contained in:
Roman Hotsiy 2015-11-18 20:34:06 +02:00
parent dc01ad9556
commit 7418372e60

View File

@ -30,7 +30,7 @@ export default class Method extends BaseComponent {
filterMainTags(tags) {
var tagsMap = this.schemaMgr.getTagsMap();
return tags.filter(tag => tagsMap[tag]['x-secondaryTag']);
return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-secondaryTag']);
}
findBodyParam() {