mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
fix: custom SQL in the XAxis (#21847)
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
||||
normalizeOrderBy,
|
||||
PostProcessingPivot,
|
||||
QueryFormData,
|
||||
getXAxis,
|
||||
getXAxisColumn,
|
||||
isXAxisSet,
|
||||
} from '@superset-ui/core';
|
||||
import {
|
||||
@@ -72,7 +72,9 @@ export default function buildQuery(formData: QueryFormData) {
|
||||
{
|
||||
...baseQueryObject,
|
||||
columns: [
|
||||
...(isXAxisSet(formData) ? ensureIsArray(getXAxis(formData)) : []),
|
||||
...(isXAxisSet(formData)
|
||||
? ensureIsArray(getXAxisColumn(formData))
|
||||
: []),
|
||||
...ensureIsArray(groupby),
|
||||
],
|
||||
series_columns: groupby,
|
||||
|
||||
Reference in New Issue
Block a user