Fix crash for methods without tags

This commit is contained in:
Roman Hotsiy 2016-01-15 17:08:25 +02:00
parent f608fbb3bd
commit 7f5482d2aa

View File

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