john-bodley commented on code in PR #20712:
URL: https://github.com/apache/superset/pull/20712#discussion_r921704044
##########
superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/index.tsx:
##########
@@ -289,14 +289,14 @@ const granularity_sqla:
SharedControlConfig<'SelectControl', ColumnMeta> = {
mapStateToProps: state => {
const props: Partial<SelectControlConfig<ColumnMeta | QueryColumn>> = {};
const { datasource } = state;
- if (datasource?.columns[0]?.hasOwnProperty('main_dttm_col')) {
+ if (datasource?.hasOwnProperty('main_dttm_col')) {
Review Comment:
The `main_dttm_col` property exists on the datasource object as opposed the
associated columns.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]