Skip to content

Commit

Permalink
fix(legacy-charts): Show Time Grain control for legacy charts (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor-Avila authored Jan 22, 2024
1 parent ef4878b commit 3ed70d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const time_grain_sqla: SharedControlConfig<'SelectControl'> = {
choices: (datasource as Dataset)?.time_grain_sqla || [],
}),
visibility: ({ controls }) => {
if (!hasGenericChartAxes) {
if (!hasGenericChartAxes || !controls?.x_axis) {
return true;
}

Expand Down

0 comments on commit 3ed70d8

Please sign in to comment.