make deployments endpoint optional
This commit is contained in:
parent
50106474e8
commit
711d9c0b54
|
@ -40,6 +40,9 @@ export default class MonitoringService {
|
|||
}
|
||||
|
||||
getDeploymentData() {
|
||||
if (!this.deploymentEndpoint) {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
return backOffRequest(() => axios.get(this.deploymentEndpoint))
|
||||
.then(resp => resp.data)
|
||||
.then((response) => {
|
||||
|
|
Loading…
Reference in New Issue