Skip to content

Commit

Permalink
fix(explore): 'Edit Datasource' is missing from btn-dropdown (apache#…
Browse files Browse the repository at this point in the history
…10283)

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

closes apache#10247
  • Loading branch information
mistercrunch authored Jul 10, 2020
1 parent af864e9 commit 7d4d2e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset-frontend/src/explore/controlUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -93,7 +94,7 @@ export function applyMapStateToPropsToControl(controlState, controlPanelState) {
if (mapStateToProps && controlPanelState) {
return {
...controlState,
...mapStateToProps(controlPanelState, controlState),
...mapStateToProps(controlPanelState, controlState, exploreActions),
};
}
return controlState;
Expand Down

0 comments on commit 7d4d2e7

Please sign in to comment.