mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
fix: hide time_grain when x_axis value is undefined (#21464)
This commit is contained in:
parent
6e8cad3e16
commit
ae6d2cf18d
@ -332,7 +332,7 @@ const time_grain_sqla: SharedControlConfig<'SelectControl'> = {
|
|||||||
|
|
||||||
const xAxis = controls?.x_axis;
|
const xAxis = controls?.x_axis;
|
||||||
const xAxisValue = xAxis?.value;
|
const xAxisValue = xAxis?.value;
|
||||||
if (xAxisValue === undefined || isAdhocColumn(xAxisValue)) {
|
if (isAdhocColumn(xAxisValue)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (isPhysicalColumn(xAxisValue)) {
|
if (isPhysicalColumn(xAxisValue)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user