mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +03:00
Fix crash on methods with no summary, description and operationId
This commit is contained in:
parent
dcd43e4fc6
commit
3f7c3fb40d
|
@ -221,7 +221,8 @@ export class SchemaHelper {
|
|||
}
|
||||
|
||||
static methodSummary(method) {
|
||||
return method.summary || method.operationId || method.description.substring(0, 50);
|
||||
return method.summary || method.operationId ||
|
||||
(method.description && method.description.substring(0, 50)) || '<no description>';
|
||||
}
|
||||
|
||||
static buildMenuTree(schema) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user