mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +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.name = getOperationSummary(operationSpec);
|
||||||
|
|
||||||
this.sidebarLabel = this.name;
|
this.sidebarLabel = options.sideNavStyle === 'path-only' ? this.path : this.name;
|
||||||
if (options.sideNavStyle === 'path-only') this.sidebarLabel = this.path;
|
|
||||||
|
|
||||||
if (this.isCallback) {
|
if (this.isCallback) {
|
||||||
// NOTE: Callbacks by default should not inherit the specification's global `security` definition.
|
// NOTE: Callbacks by default should not inherit the specification's global `security` definition.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user