mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
Use ternary operator
This commit is contained in:
parent
cbd182a74f
commit
006d914c1d
|
@ -105,8 +105,7 @@ export class OperationModel implements IMenuItem {
|
|||
|
||||
this.name = getOperationSummary(operationSpec);
|
||||
|
||||
this.sidebarLabel = this.name;
|
||||
if (options.sideNavStyle === 'path-only') this.sidebarLabel = this.path;
|
||||
this.sidebarLabel = options.sideNavStyle === 'path-only' ? this.path : this.name;
|
||||
|
||||
if (this.isCallback) {
|
||||
// NOTE: Callbacks by default should not inherit the specification's global `security` definition.
|
||||
|
|
Loading…
Reference in New Issue
Block a user