diff --git a/superset-frontend/src/explore/components/Control.tsx b/superset-frontend/src/explore/components/Control.tsx index d3ae6bb1c17f..e9713e028bae 100644 --- a/superset-frontend/src/explore/components/Control.tsx +++ b/superset-frontend/src/explore/components/Control.tsx @@ -40,6 +40,7 @@ export type ControlProps = { validationErrors?: any[]; hidden?: boolean; renderTrigger?: boolean; + options?: any; }; export default class Control extends React.PureComponent< @@ -70,6 +71,12 @@ export default class Control extends React.PureComponent< const { type, hidden } = this.props; if (!type) return null; const ControlComponent = typeof type === 'string' ? controlMap[type] : type; + + let { options } = this.props; + if (type === 'SelectControl' && !!options && !Array.isArray(options)) { + options = Object.values(options); + } + return (
);