mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00:00
fix(plugin-chart-echarts): missing dnd control in tree chart (#1260)
This commit is contained in:
committed by
Yongjie Zhao
parent
072e4949e8
commit
c2c6bb0a35
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import React from 'react';
|
||||
import { t } from '@superset-ui/core';
|
||||
import { FeatureFlag, isFeatureEnabled, t } from '@superset-ui/core';
|
||||
import { ControlPanelConfig, sections, sharedControls } from '@superset-ui/chart-controls';
|
||||
import { DEFAULT_FORM_DATA } from './types';
|
||||
|
||||
@@ -85,7 +85,9 @@ const controlPanel: ControlPanelConfig = {
|
||||
name: 'metric',
|
||||
config: {
|
||||
...optionalEntity,
|
||||
type: 'MetricsControl',
|
||||
type: isFeatureEnabled(FeatureFlag.ENABLE_EXPLORE_DRAG_AND_DROP)
|
||||
? 'DndMetricSelect'
|
||||
: 'MetricsControl',
|
||||
label: t('Metric'),
|
||||
description: t('Metric for node values'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user