diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/monitoring/utils/multiple_time_series.js | 4 |
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; |