superset-frontend/plugins/legacy-plugin-chart-map-box/src/transformProps.js
Function transformProps
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformProps(chartProps) {
const { width, height, formData, hooks, queriesData } = chartProps;
const { onError = NOOP, setControlValue = NOOP } = hooks;
const { bounds, geoJSON, hasCustomMetric, mapboxApiKey } =
queriesData[0].data;