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 1ec8ee9 commit 444d024
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/ApiDocumentationElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
}
}

get server() {
const { serverValue, serverType, selectedType, endpointId: eid, selected: mid } = this;
computeServers(){
const { serverType, selectedType, endpointId: eid, selected: mid } = this;
if (serverType && serverType !== 'server') {
return null;
}
Expand All @@ -412,8 +412,14 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
endpointId = mid;
}

const servers = this._getServers({ endpointId, methodId });
this._servers = servers
this._servers = this._getServers({ endpointId, methodId });
return this._servers
}

get server() {
const { serverValue } = this;
this.computeServers()
const servers = this._servers

if (!servers || !servers.length) {
return null;
Expand Down Expand Up @@ -489,6 +495,7 @@ export class ApiDocumentationElement extends EventsTargetMixin(AmfHelperMixin(Li
default:
return;
}
this.computeServers()
this._docsModel = result;
this._viewType = selectedType;
}
Expand Down

0 comments on commit 444d024

Please sign in to comment.