mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: accept null groupby in form data for timeseries table viz (#13086)
* Allowing timeseries table groupby to be null in form data * Check truthiness for is_group_by Co-authored-by: michelle_thomas <michelle.thomas@airbnb.com>
This commit is contained in:
@@ -20,7 +20,7 @@ export default function transformProps(chartProps) {
|
||||
const { height, datasource, formData, queriesData } = chartProps;
|
||||
const { columnCollection = [], groupby, metrics, url } = formData;
|
||||
const { records, columns } = queriesData[0].data;
|
||||
const isGroupBy = groupby.length > 0;
|
||||
const isGroupBy = groupby?.length > 0;
|
||||
|
||||
// When there is a "group by",
|
||||
// each row in the table is a database column
|
||||
|
||||
Reference in New Issue
Block a user