superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/common.tsx
Function commonLayerProps
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function commonLayerProps(
formData: QueryFormData,
setTooltip: (tooltip: TooltipProps['tooltip']) => void,
setTooltipContent: (content: JsonObject) => ReactNode,
onSelect?: (value: JsonValue) => void,
Function getAggFunc
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getAggFunc(
type = 'sum',
accessor: ((object: any) => number | undefined) | null = null,
) {
if (type === 'count') {