mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00:00
refactor: tick calculation (#1072)
This commit is contained in:
@@ -126,6 +126,11 @@ const buildQuery: BuildQuery<TableChartFormData> = (formData: TableChartFormData
|
||||
});
|
||||
}
|
||||
|
||||
const interactiveGroupBy = formData.extra_form_data?.interactive_groupby;
|
||||
if (interactiveGroupBy && queryObject.columns && queryMode === QueryMode.aggregate) {
|
||||
queryObject.columns = [...new Set([...queryObject.columns, ...interactiveGroupBy])];
|
||||
}
|
||||
|
||||
if (formData.server_pagination) {
|
||||
return [
|
||||
{ ...queryObject },
|
||||
@@ -134,11 +139,6 @@ const buildQuery: BuildQuery<TableChartFormData> = (formData: TableChartFormData
|
||||
];
|
||||
}
|
||||
|
||||
const interactiveGroupBy = formData.extra_form_data?.interactive_groupby;
|
||||
if (interactiveGroupBy && queryObject.columns) {
|
||||
queryObject.columns = [...new Set([...queryObject.columns, ...interactiveGroupBy])];
|
||||
}
|
||||
|
||||
return [queryObject, ...extraQueries];
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user