42bba3de52
The limit wasn't working properly for two dimensional stacked charts. This PR fixes this.
12 lines
357 B
TypeScript
12 lines
357 B
TypeScript
import { isDefined } from 'twenty-shared/utils';
|
|
import {
|
|
type BarChartConfiguration,
|
|
type LineChartConfiguration,
|
|
} from '~/generated/graphql';
|
|
|
|
export const isChartConfigurationTwoDimensional = (
|
|
configuration: BarChartConfiguration | LineChartConfiguration,
|
|
): boolean => {
|
|
return isDefined(configuration.secondaryAxisGroupByFieldMetadataId);
|
|
};
|