Skip to content

Commit

Permalink
fix: hide time_grain when x_axis value is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Sep 14, 2022
1 parent 6e8cad3 commit cd9892e
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 cd9892e

Please sign in to comment.