fix(explore): Prevent shared controls from checking feature flags outside React render (#21315)

This commit is contained in:
Cody Leff
2022-09-14 14:41:47 -04:00
committed by GitHub
parent 59ca7861c0
commit 2285ebe72e
21 changed files with 285 additions and 435 deletions

View File

@@ -23,7 +23,7 @@ import {
ControlPanelState,
formatSelectOptions,
sections,
dndEntity,
sharedControls,
getStandardizedControls,
} from '@superset-ui/chart-controls';
@@ -36,7 +36,7 @@ const allColumns = {
};
const columnsConfig = isFeatureEnabled(FeatureFlag.ENABLE_EXPLORE_DRAG_AND_DROP)
? dndEntity
? sharedControls.entity
: allColumns;
const colorChoices = [