diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-06-27 21:30:40 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-06-27 21:30:40 +0300 |
commit | e29a51360fb3a2b3f96e697110fd9542d6773880 (patch) | |
tree | 5dca41406bc1d384aff7ba78662feb81319219f8 /app | |
parent | 50b69083d19fca516a9e0425f7b1bab4b84c2b18 (diff) | |
parent | e1ff11db5a011b042b7020d40851bec0e7b47ec8 (diff) |
Merge branch 'dohtaset' into 'master'
Fix charts on Cluster page
See merge request gitlab-org/gitlab-ce!30073
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/monitoring/monitoring_bundle.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/assets/javascripts/monitoring/monitoring_bundle.js b/app/assets/javascripts/monitoring/monitoring_bundle.js index edbcf84b342..97d149e9ad5 100644 --- a/app/assets/javascripts/monitoring/monitoring_bundle.js +++ b/app/assets/javascripts/monitoring/monitoring_bundle.js @@ -8,10 +8,12 @@ export default (props = {}) => { const el = document.getElementById('prometheus-graphs'); if (el && el.dataset) { - store.dispatch('monitoringDashboard/setFeatureFlags', { - prometheusEndpointEnabled: gon.features.environmentMetricsUsePrometheusEndpoint, - multipleDashboardsEnabled: gon.features.environmentMetricsShowMultipleDashboards, - }); + if (gon.features) { + store.dispatch('monitoringDashboard/setFeatureFlags', { + prometheusEndpointEnabled: gon.features.environmentMetricsUsePrometheusEndpoint, + multipleDashboardsEnabled: gon.features.environmentMetricsShowMultipleDashboards, + }); + } const [currentDashboard] = getParameterValues('dashboard'); |