mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
feat: apply standardized form data to tier 2 charts (#20530)
This commit is contained in:
@@ -20,6 +20,7 @@ import { t } from '@superset-ui/core';
|
||||
import {
|
||||
ControlPanelConfig,
|
||||
ControlPanelsContainerProps,
|
||||
getStandardizedControls,
|
||||
sections,
|
||||
} from '@superset-ui/chart-controls';
|
||||
|
||||
@@ -96,6 +97,12 @@ const config: ControlPanelConfig = {
|
||||
description: t('This defines the level of the hierarchy'),
|
||||
},
|
||||
},
|
||||
formDataOverrides: formData => ({
|
||||
...formData,
|
||||
groupby: getStandardizedControls().popAllColumns(),
|
||||
metric: getStandardizedControls().shiftMetric(),
|
||||
secondary_metric: getStandardizedControls().shiftMetric(),
|
||||
}),
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user