Skip to content

Commit

Permalink
fix: hide time_grain when x_axis value is undefined (#21464)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored Sep 14, 2022
1 parent 6e8cad3 commit ae6d2cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ const time_grain_sqla: SharedControlConfig<'SelectControl'> = {

const xAxis = controls?.x_axis;
const xAxisValue = xAxis?.value;
if (xAxisValue === undefined || isAdhocColumn(xAxisValue)) {
if (isAdhocColumn(xAxisValue)) {
return true;
}
if (isPhysicalColumn(xAxisValue)) {
Expand Down

0 comments on commit ae6d2cf

Please sign in to comment.