未验证 提交 7d4d2e74 编写于 作者: M Maxime Beauchemin 提交者: GitHub

fix(explore): 'Edit Datasource' is missing from btn-dropdown (#10283)

Not sure how it got broken but he's a fix. I'm thinking this is related
to the controls refactor.

closes https://github.com/apache/incubator-superset/issues/10247
上级 af864e9f
......@@ -20,6 +20,7 @@ import memoizeOne from 'memoize-one';
import { getChartControlPanelRegistry } from '@superset-ui/chart';
import { expandControlConfig } from '@superset-ui/chart-controls';
import { controls as SHARED_CONTROLS } from './controls';
import * as exploreActions from './actions/exploreActions';
import * as SECTIONS from './controlPanels/sections';
export function getFormDataFromControls(controlsState) {
......@@ -93,7 +94,7 @@ export function applyMapStateToPropsToControl(controlState, controlPanelState) {
if (mapStateToProps && controlPanelState) {
return {
...controlState,
...mapStateToProps(controlPanelState, controlState),
...mapStateToProps(controlPanelState, controlState, exploreActions),
};
}
return controlState;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册