diff --git a/ui/src/utils/groupByTimeSeriesTransform.ts b/ui/src/utils/groupByTimeSeriesTransform.ts index 9519b1fb9a..eebff1169e 100644 --- a/ui/src/utils/groupByTimeSeriesTransform.ts +++ b/ui/src/utils/groupByTimeSeriesTransform.ts @@ -184,13 +184,14 @@ const constructCells = ( responseIndex, seriesIndex, })) - // tslint:disable-next-line:no-unused-vars - const [__, ...rest] = columns - const labelsFromColumns = fastMap(rest, field => ({ - label: `${measurement}.${field}`, - responseIndex, - seriesIndex, - })) + const labelsFromColumns = fastMap( + columns.slice(1), + field => ({ + label: `${measurement}.${field}`, + responseIndex, + seriesIndex, + }) + ) unsortedLabels = fastConcat