Don't render if there are no servers defined
This commit is contained in:
@@ -69,6 +69,10 @@ export default class OperationServers extends React.Component {
|
|||||||
getComponent
|
getComponent
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
|
if(!operationServers && !pathServers) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
const Servers = getComponent("Servers")
|
const Servers = getComponent("Servers")
|
||||||
|
|
||||||
const serversToDisplay = operationServers || pathServers
|
const serversToDisplay = operationServers || pathServers
|
||||||
|
|||||||
Reference in New Issue
Block a user