From addb78f3506d1aa67c54201f485f3d998fac4eb9 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Tue, 31 Jan 2017 08:41:35 -0800 Subject: [PATCH] Stop modifying columns in place --- ui/src/utils/timeSeriesToDygraph.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/utils/timeSeriesToDygraph.js b/ui/src/utils/timeSeriesToDygraph.js index b9af811f35..036dbaed9c 100644 --- a/ui/src/utils/timeSeriesToDygraph.js +++ b/ui/src/utils/timeSeriesToDygraph.js @@ -46,11 +46,9 @@ export default function timeSeriesToDygraph(raw = [], activeQueryIndex, isInData vals, })); - columns.shift(); - // tagSet is each tag key and value for a series const tagSet = map(Object.keys(tags), (tag) => `[${tag}=${tags[tag]}]`).sort().join(''); - const unsortedLabels = map(columns, (field) => ({ + const unsortedLabels = map(columns.slice(1), (field) => ({ label: `${measurement}.${field}${tagSet}`, responseIndex, seriesIndex,