@@ -403,16 +403,12 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
403
403
let methodId ;
404
404
if ( selectedType === 'method' ) {
405
405
endpointId = eid ;
406
- if ( this . _isAsyncAPI ( this . amf ) && this . _endpoint ) {
407
- endpointId = this . _endpoint [ '@id' ] ;
408
- }
409
406
methodId = mid ;
410
407
} else {
411
408
endpointId = mid ;
412
409
}
413
410
414
411
const servers = this . _getServers ( { endpointId, methodId } ) ;
415
- this . _servers = this . _ensureArray ( servers )
416
412
417
413
if ( ! servers || ! servers . length ) {
418
414
return null ;
@@ -1185,7 +1181,7 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
1185
1181
}
1186
1182
1187
1183
_methodTemplate ( ) {
1188
- const { amf, _docsModel, narrow, compatibility, _endpoint, selected, noTryIt, graph, noBottomNavigation, server, _servers } = this ;
1184
+ const { amf, _docsModel, narrow, compatibility, _endpoint, selected, noTryIt, graph, noBottomNavigation, server } = this ;
1189
1185
const prev = this . _computeMethodPrevious ( amf , selected ) ;
1190
1186
const next = this . _computeMethodNext ( amf , selected ) ;
1191
1187
@@ -1195,7 +1191,6 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
1195
1191
.compatibility ="${ compatibility } "
1196
1192
.endpoint ="${ _endpoint } "
1197
1193
.server ="${ server } "
1198
- .servers ="${ _servers } "
1199
1194
.method ="${ _docsModel } "
1200
1195
.previous ="${ prev } "
1201
1196
.next ="${ next } "
@@ -1214,7 +1209,7 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
1214
1209
}
1215
1210
1216
1211
_inlineEndpointTemplate ( ) {
1217
- const { amf, _docsModel, narrow, compatibility, outlined, selected, scrollTarget, redirectUri, noUrlEditor, graph, noBottomNavigation, server, _servers } = this ;
1212
+ const { amf, _docsModel, narrow, compatibility, outlined, selected, scrollTarget, redirectUri, noUrlEditor, graph, noBottomNavigation, server } = this ;
1218
1213
const prev = this . _computeEndpointPrevious ( amf , selected , true ) ;
1219
1214
const next = this . _computeEndpointNext ( amf , selected , true ) ;
1220
1215
@@ -1225,7 +1220,6 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
1225
1220
.outlined ="${ outlined } "
1226
1221
.selected ="${ selected } "
1227
1222
.server ="${ server } "
1228
- .servers ="${ _servers } "
1229
1223
.endpoint ="${ _docsModel } "
1230
1224
.previous ="${ prev } "
1231
1225
.next ="${ next } "
@@ -1240,7 +1234,7 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
1240
1234
}
1241
1235
1242
1236
_simpleEndpointTemplate ( ) {
1243
- const { amf, _docsModel, narrow, compatibility, selected, graph, noBottomNavigation, server, _servers } = this ;
1237
+ const { amf, _docsModel, narrow, compatibility, selected, graph, noBottomNavigation, server } = this ;
1244
1238
const prev = this . _computeEndpointPrevious ( amf , selected ) ;
1245
1239
const next = this . _computeEndpointNext ( amf , selected ) ;
1246
1240
@@ -1249,7 +1243,6 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
1249
1243
.narrow ="${ narrow } "
1250
1244
.compatibility ="${ compatibility } "
1251
1245
.server ="${ server } "
1252
- .servers ="${ _servers } "
1253
1246
.selected ="${ selected } "
1254
1247
.endpoint ="${ _docsModel } "
1255
1248
.previous ="${ prev } "
0 commit comments