Skip to content

Commit

Permalink
fixed broken chart type
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Jul 6, 2022
1 parent 614d6a6 commit 9241875
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const getMemoizedSectionsToRender = memoizeOne(

// list of datasource-specific controls that should be removed
const invalidControls =
datasourceType !== 'table' ? ['granularity_sqla', 'time_grain_sqla'] : [];
datasourceType === 'table'
? ['granularity']
: ['granularity_sqla', 'time_grain_sqla'];

return [datasourceAndVizType]
.concat(controlPanelSections.filter(isControlPanelSectionConfig))
Expand Down

0 comments on commit 9241875

Please sign in to comment.