Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed May 13, 2022
1 parent 3ca3b82 commit 1da6428
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const pivotOperator: PostProcessingFactory<PostProcessingPivot> = (
const { x_axis: xAxis } = formData;

if ((xAxis || queryObject.is_timeseries) && metricLabels.length) {
const index = [getColumnLabel(formData.x_axis || DTTM_ALIAS)];
const index = [getColumnLabel(xAxis || DTTM_ALIAS)];
return {
operation: 'pivot',
options: {
Expand Down

0 comments on commit 1da6428

Please sign in to comment.