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