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
This commit is contained in:
Maxime Beauchemin 2020-07-10 00:11:53 -07:00 committed by GitHub
parent af864e9fff
commit 7d4d2e7469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;