fix(legacy-charts): Show Time Grain control for legacy charts (#26705)

This commit is contained in:
Vitor Avila
2024-01-22 16:37:03 -03:00
committed by GitHub
parent ef4878b845
commit 3ed70d8f53

View File

@@ -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;
}