From 7d4d2e74691b8b92fa858bc15e54215515501dbd Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 10 Jul 2020 00:11:53 -0700 Subject: [PATCH] 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 --- superset-frontend/src/explore/controlUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/explore/controlUtils.js b/superset-frontend/src/explore/controlUtils.js index 1219ff78d..ee1390bf6 100644 --- a/superset-frontend/src/explore/controlUtils.js +++ b/superset-frontend/src/explore/controlUtils.js @@ -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;