mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: Revert shared controls typing change. (#22014)
This commit is contained in:
@@ -25,14 +25,15 @@ import {
|
||||
sections,
|
||||
getStandardizedControls,
|
||||
sharedControls,
|
||||
ControlState,
|
||||
} from '@superset-ui/chart-controls';
|
||||
|
||||
const columnsConfig = {
|
||||
...sharedControls.columns,
|
||||
label: t('Columns'),
|
||||
description: t('Select the numeric columns to draw the histogram'),
|
||||
mapStateToProps: (state: ControlPanelState) => ({
|
||||
...(sharedControls.columns.mapStateToProps?.(state) || {}),
|
||||
mapStateToProps: (state: ControlPanelState, controlState: ControlState) => ({
|
||||
...(sharedControls.columns.mapStateToProps?.(state, controlState) || {}),
|
||||
choices: columnChoices(state.datasource),
|
||||
}),
|
||||
validators: [validateNonEmpty],
|
||||
|
||||
Reference in New Issue
Block a user