Skip to content

Commit

Permalink
Merge pull request #57 from advanced-rest-client/feat/W-15607551/servers
Browse files Browse the repository at this point in the history
Feat/w 15607551/servers
  • Loading branch information
leandrogilcarrano authored May 3, 2024
2 parents d932081 + 237d147 commit 472d291
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@api-components/api-documentation",
"description": "A main documentation view for AMF model",
"version": "6.1.3",
"version": "6.1.4",
"license": "Apache-2.0",
"main": "index.js",
"module": "index.js",
Expand Down
3 changes: 3 additions & 0 deletions src/ApiDocumentationElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
let methodId;
if (selectedType === 'method') {
endpointId = eid;
if(this._isAsyncAPI(this.amf) && this._endpoint){
endpointId = this._endpoint['@id'];
}
methodId = mid;
} else {
endpointId = mid;
Expand Down

0 comments on commit 472d291

Please sign in to comment.