Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Mar 6, 2023
1 parent af0517f commit 6252762
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export const pivotOperator: PostProcessingFactory<PostProcessingPivot> = (
formData,
queryObject,
) => {
const metricLabels = ensureIsArray(queryObject.metrics).map(getMetricLabel);
const extraMetrics = extractExtraMetrics(formData);
metricLabels.push(...extraMetrics.map(getMetricLabel));
const metricLabels = [
...ensureIsArray(queryObject.metrics),
...extractExtraMetrics(formData),
].map(getMetricLabel);
const xAxisLabel = getXAxisLabel(formData);
const columns = queryObject.series_columns || queryObject.columns;

Expand Down

0 comments on commit 6252762

Please sign in to comment.