summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-09-07 18:26:33 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-09-07 18:26:33 -0500
commit4bd5c062f03437c2359356a61ac84a7bbb141cf8 (patch)
tree316ce6fcde225331ee9678789fadc596b564666c /app
parent7f5ae2e8b2a3e29ad128e28798b82c8b19d55100 (diff)
downloadgitlab-ce-4bd5c062f03437c2359356a61ac84a7bbb141cf8.tar.gz
flipped series and when keys
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/monitoring/utils/multiple_time_series.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/utils/multiple_time_series.js b/app/assets/javascripts/monitoring/utils/multiple_time_series.js
index 4e6a64fc47c..3cbe06d8fd6 100644
--- a/app/assets/javascripts/monitoring/utils/multiple_time_series.js
+++ b/app/assets/javascripts/monitoring/utils/multiple_time_series.js
@@ -68,8 +68,8 @@ export default function createTimeSeries(queryData, graphWidth, graphHeight, gra
.y1(d => timeSeriesScaleY(d.value));
const timeSeriesMetricLabel = timeSeries.metric[Object.keys(timeSeries.metric)[0]];
- const seriesCustomizationData = queryData.when != null &&
- _.findWhere(queryData.when[0].series,
+ const seriesCustomizationData = queryData.series != null &&
+ _.findWhere(queryData.series[0].when,
{ value: timeSeriesMetricLabel });
if (seriesCustomizationData != null) {
metricTag = seriesCustomizationData.value || timeSeriesMetricLabel;