diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-22 08:55:40 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 12:11:38 +0300 |
commit | 711d9c0b541f120612dac4317b78e54272a80429 (patch) | |
tree | 79667b8b57e99019300ec8da7a394aa6ca1d74b5 /app/assets | |
parent | 50106474e8ebd4272be67a8eee5a6332c94f1d9d (diff) |
make deployments endpoint optional
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/monitoring/services/monitoring_service.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/services/monitoring_service.js b/app/assets/javascripts/monitoring/services/monitoring_service.js index e230a06cd8c..6fcca36d2fa 100644 --- a/app/assets/javascripts/monitoring/services/monitoring_service.js +++ b/app/assets/javascripts/monitoring/services/monitoring_service.js @@ -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) => { |