Skip to content

Commit

Permalink
fix(explore): Fix generic X-axis time grain disappearing (#21484)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml committed Sep 16, 2022
1 parent 2dfcba0 commit 324e997
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,12 @@ const time_grain_sqla: SharedControlConfig<'SelectControl'> = {
if (isAdhocColumn(xAxisValue)) {
return true;
}
if (isPhysicalColumn(xAxisValue)) {
return !!xAxis?.options?.[xAxisValue]?.is_dttm;
if (isPhysicalColumn(xAxisValue) && Array.isArray(xAxis?.options)) {
for (let i = 0; i < xAxis.options.length; i += 1) {
if (xAxis.options[i].column_name === xAxisValue) {
return !!xAxis.options[i].is_dttm;
}
}
}
return false;
},
Expand Down

1 comment on commit 324e997

@tvin123321
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

놀다 바카라 지금 온라인으로 라이브하고 놀라운 보너스를 받으세요

Please sign in to comment.