From 7f5482d2aa68a58ce4b471c6d7b3e32695beece4 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 15 Jan 2016 17:08:25 +0200 Subject: [PATCH] Fix crash for methods without tags --- lib/components/Method/method.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/components/Method/method.js b/lib/components/Method/method.js index a42cafc5..05674deb 100644 --- a/lib/components/Method/method.js +++ b/lib/components/Method/method.js @@ -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']); }