mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
Fix minor issue with menu building
This commit is contained in:
parent
6af3ab74ed
commit
31b44c407e
|
@ -89,7 +89,7 @@ export default class SchemaManager {
|
||||||
buildMenuTree() {
|
buildMenuTree() {
|
||||||
let tag2MethodMapping = new Map();
|
let tag2MethodMapping = new Map();
|
||||||
|
|
||||||
let definedTags = this._schema.tags;
|
let definedTags = this._schema.tags || [];
|
||||||
// add tags into map to preserve order
|
// add tags into map to preserve order
|
||||||
for (let tag of definedTags) {
|
for (let tag of definedTags) {
|
||||||
tag2MethodMapping.set(tag.name, {
|
tag2MethodMapping.set(tag.name, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user