refactor: remove useless groupby from QueryObject (#21643)

This commit is contained in:
Yongjie Zhao
2022-09-30 11:53:54 +08:00
committed by GitHub
parent f3465f5b22
commit 9dd102f383
4 changed files with 4 additions and 8 deletions

View File

@@ -23,13 +23,10 @@ import {
} from '@superset-ui/core';
export default function buildQuery(formData: QueryFormData) {
const { groupby } = formData;
return buildQueryContext(formData, baseQueryObject => [
{
...baseQueryObject,
orderby: normalizeOrderBy(baseQueryObject).orderby,
...(groupby && { groupby }),
},
]);
}