mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
Fix crash trying to index empty tags list
This commit is contained in:
parent
05be7561f0
commit
6fcee29b54
|
@ -83,6 +83,7 @@ export class SearchService {
|
||||||
|
|
||||||
indexTags(swagger:SwaggerSpec) {
|
indexTags(swagger:SwaggerSpec) {
|
||||||
let tags = swagger.tags;
|
let tags = swagger.tags;
|
||||||
|
if (!tags) return;
|
||||||
for (let tag of tags) {
|
for (let tag of tags) {
|
||||||
if (tag['x-traitTag']) continue;
|
if (tag['x-traitTag']) continue;
|
||||||
let id = `tag/${slugify(tag.name)}`;
|
let id = `tag/${slugify(tag.name)}`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user