Skip to content

Commit

Permalink
remove line
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrogilcarrano committed May 6, 2024
1 parent e05ad05 commit 1ec8ee9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ApiDocumentationElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
this.__amfProcessingDebouncer = false;

let { amf } = this;
this._asyncAPI = this._isAsyncAPI(amf)
if (!amf) {
return;
}
Expand Down Expand Up @@ -403,9 +404,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'];
// }
if(this._asyncAPI && this._endpoint){
endpointId = this._endpoint['@id'];
}
methodId = mid;
} else {
endpointId = mid;
Expand Down

0 comments on commit 1ec8ee9

Please sign in to comment.