Skip to content

The open alternative to Salesforce, designed for AI.

fix groupMode regression caused due to default value flip (#15627)

nitin3f52102e187a
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx
index 7cfcb10f347..7c03c8c7138 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx
@@ -70,7 +70,7 @@ export const GraphWidgetBarChart = ({
yAxisLabel,
id,
layout = 'vertical',
- groupMode = 'grouped',
+ groupMode,
seriesLabels,
rangeMin,
rangeMax,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts
index 597503907c0..85a5cc8abec 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts
@@ -8,9 +8,9 @@ export const getEffectiveGroupMode = (
return undefined;
}
- if (groupMode === 'STACKED') {
- return 'stacked';
+ if (groupMode === 'GROUPED') {
+ return 'grouped';
}
- return 'grouped';
+ return 'stacked';
};