From 37030ecbc1c94b1ab558a5a695fc1c9352962995 Mon Sep 17 00:00:00 2001 From: Roman Gotsiy Date: Wed, 28 Oct 2015 23:49:31 +0200 Subject: [PATCH] Handle tags without methods --- lib/components/MethodsList/methods-list.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/components/MethodsList/methods-list.js b/lib/components/MethodsList/methods-list.js index 72ee2545..4cf2d7c8 100644 --- a/lib/components/MethodsList/methods-list.js +++ b/lib/components/MethodsList/methods-list.js @@ -25,6 +25,7 @@ export default class MethodsList extends BaseComponent { .map((entry) => { let [tag, {description, methods}] = entry; // inject tag name into method info + methods = methods || []; methods.forEach(method => { method.tag = tag; });