make deployments endpoint optional

This commit is contained in:
Mike Greiling 2018-02-21 23:55:40 -06:00
parent 50106474e8
commit 711d9c0b54
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 3 additions and 0 deletions

View File

@ -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) => {