Skip to content

Commit

Permalink
fix: rename DnD types to match component names in Superset (apache-su…
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje authored and NejcZdovc committed Apr 20, 2021
1 parent 24cb5f5 commit d7bff9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const timeColumnOption = {
description: t('A reference to the [Time] configuration, taking granularity into account'),
};

export const dndGroupByControl: SharedControlConfig<'DndColumnSelectControl'> = {
type: 'DndColumnSelectControl',
export const dndGroupByControl: SharedControlConfig<'DndColumnSelect'> = {
type: 'DndColumnSelect',
label: t('Group by'),
default: [],
description: t('One or many columns to group by'),
Expand Down
2 changes: 1 addition & 1 deletion packages/superset-ui-chart-controls/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export type InternalControlType =
| 'MetricsControl'
| 'AdhocFilterControl'
| 'FilterBoxItemControl'
| 'DndColumnSelectControl'
| 'DndColumnSelect'
| 'DndFilterSelect'
| keyof SharedControlComponents; // expanded in `expandControlConfig`

Expand Down

0 comments on commit d7bff9c

Please sign in to comment.