The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix legend toggle for line and bar charts (#16120)
nitindb6456b1afd1
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.tsindex 721d14cc1bc..d1b6b07809c 100644--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts@@ -240,7 +240,9 @@ export const useChartSettingsValues = ({? getDateGranularityLabel(configuration.dateGranularity): undefined;case CHART_CONFIGURATION_SETTING_IDS.SHOW_LEGEND:- return isPieChart ? (configuration.displayLegend ?? true) : true;+ return isBarOrLineChart || isPieChart+ ? (configuration.displayLegend ?? true)+ : true;default:return '';}