Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomedina248 committed Mar 9, 2022
1 parent 55e14b2 commit 6ed0c68
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ const all_columns: typeof sharedControls.groupby = {
optionRenderer: c => <ColumnOption showType column={c} />,
valueRenderer: c => <ColumnOption column={c} />,
valueKey: 'column_name',
shouldMapStateToProps() {
return true;
},
mapStateToProps: ({ datasource, controls }, controlState) => ({
options: datasource?.columns || [],
queryMode: getQueryMode(controls),
Expand All @@ -129,9 +126,6 @@ const dnd_all_columns: typeof sharedControls.groupby = {
label: t('Columns'),
description: t('Columns to display'),
default: [],
shouldMapStateToProps() {
return true;
},
mapStateToProps({ datasource, controls }, controlState) {
const newState: ExtraControlProps = {};
if (datasource) {
Expand All @@ -158,9 +152,6 @@ const percent_metrics: typeof sharedControls.metrics = {
),
multi: true,
visibility: isAggMode,
shouldMapStateToProps() {
return true;
},
mapStateToProps: ({ datasource, controls }, controlState) => ({
columns: datasource?.columns || [],
savedMetrics: datasource?.metrics || [],
Expand Down

0 comments on commit 6ed0c68

Please sign in to comment.