mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
Fix crash for methods without tags
This commit is contained in:
parent
f608fbb3bd
commit
7f5482d2aa
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user