mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-10 16:22:27 +03:00
fix: fix anchor links accidentally broken
This commit is contained in:
parent
d52c7ef8a0
commit
2d7d4d3409
|
@ -14,9 +14,9 @@ interface MethodInfo {
|
||||||
description: string;
|
description: string;
|
||||||
};
|
};
|
||||||
bodyParam: any;
|
bodyParam: any;
|
||||||
summary: any;
|
summary: string;
|
||||||
anchor: any;
|
anchor: string;
|
||||||
externalDocs: {
|
externalDocs?: {
|
||||||
url: string;
|
url: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
}
|
}
|
||||||
|
@ -60,8 +60,8 @@ export class Method extends BaseComponent implements OnInit {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
buildAnchor() {
|
buildAnchor():string {
|
||||||
this.menu.hashFor(this.pointer,
|
return this.menu.hashFor(this.pointer,
|
||||||
{ type: 'method', operationId: this.operationId, pointer: this.pointer },
|
{ type: 'method', operationId: this.operationId, pointer: this.pointer },
|
||||||
this.parentTagId );
|
this.parentTagId );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user