mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
Handle tags without methods
This commit is contained in:
parent
b56c170d3a
commit
37030ecbc1
|
@ -25,6 +25,7 @@ export default class MethodsList extends BaseComponent {
|
||||||
.map((entry) => {
|
.map((entry) => {
|
||||||
let [tag, {description, methods}] = entry;
|
let [tag, {description, methods}] = entry;
|
||||||
// inject tag name into method info
|
// inject tag name into method info
|
||||||
|
methods = methods || [];
|
||||||
methods.forEach(method => {
|
methods.forEach(method => {
|
||||||
method.tag = tag;
|
method.tag = tag;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user