Stop modifying columns in place

pull/10616/head
Andrew Watkins 2017-01-31 08:41:35 -08:00
parent 42fb31b525
commit addb78f350
1 changed files with 1 additions and 3 deletions

View File

@ -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,