Skip to content

Commit c0c44bc

Browse files
committed
fix: regression - broken urls for operations without operationId
1 parent 9f0252e commit c0c44bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/models/Operation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export class OperationModel implements IMenuItem {
6868
this.id =
6969
operationSpec.operationId !== undefined
7070
? 'operation/' + operationSpec.operationId
71-
: this.parent !== undefined
72-
? this.parent.id + operationSpec._$ref
71+
: parent !== undefined
72+
? parent.id + operationSpec._$ref
7373
: operationSpec._$ref;
7474

7575
this.name = getOperationSummary(operationSpec);

0 commit comments

Comments
 (0)