From e119b118379539fb8426afe19e004aaf1924bcfd Mon Sep 17 00:00:00 2001 From: Alexander Thor Date: Fri, 27 Sep 2024 20:55:31 +0200 Subject: [PATCH 1/2] fix: bump pivot limit --- web-common/src/features/dashboards/pivot/pivot-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-common/src/features/dashboards/pivot/pivot-utils.ts b/web-common/src/features/dashboards/pivot/pivot-utils.ts index 5d7dd43df2e..a15e50e2a29 100644 --- a/web-common/src/features/dashboards/pivot/pivot-utils.ts +++ b/web-common/src/features/dashboards/pivot/pivot-utils.ts @@ -479,7 +479,7 @@ export function canEnablePivotComparison( comparisonStart: string | Date | undefined, ) { // Disable if more than 5 measures - if (pivotState.columns.measure.length >= 5) { + if (pivotState.columns.measure.length > 10) { return false; } // Disable if time comparison is not present From 48112c66120da2d582658bef17abb96dd6303fe5 Mon Sep 17 00:00:00 2001 From: Alexander Thor Date: Wed, 2 Oct 2024 09:42:17 +0200 Subject: [PATCH 2/2] chore: update comment --- web-common/src/features/dashboards/pivot/pivot-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-common/src/features/dashboards/pivot/pivot-utils.ts b/web-common/src/features/dashboards/pivot/pivot-utils.ts index a15e50e2a29..414da07e9fc 100644 --- a/web-common/src/features/dashboards/pivot/pivot-utils.ts +++ b/web-common/src/features/dashboards/pivot/pivot-utils.ts @@ -478,7 +478,7 @@ export function canEnablePivotComparison( pivotState: PivotState, comparisonStart: string | Date | undefined, ) { - // Disable if more than 5 measures + // Disable if more than 10 measures if (pivotState.columns.measure.length > 10) { return false; }