mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
fix: pivot v2 charts created before GENERIC_CHART_AXES is enabled (#23731)
This commit is contained in:
@@ -42,7 +42,11 @@ export default function buildQuery(formData: PivotTableQueryFormData) {
|
||||
isPhysicalColumn(col) &&
|
||||
formData.time_grain_sqla &&
|
||||
hasGenericChartAxes &&
|
||||
formData?.temporal_columns_lookup?.[col]
|
||||
/* Charts created before `GENERIC_CHART_AXES` is enabled have a different
|
||||
* form data, with `granularity_sqla` set instead.
|
||||
*/
|
||||
(formData?.temporal_columns_lookup?.[col] ||
|
||||
formData.granularity_sqla === col)
|
||||
) {
|
||||
return {
|
||||
timeGrain: formData.time_grain_sqla,
|
||||
|
||||
Reference in New Issue
Block a user