From bc6aad0a88bbbbfd6c592f8813d1b72471788897 Mon Sep 17 00:00:00 2001 From: Smart-Codi Date: Thu, 10 Mar 2022 04:35:29 +0000 Subject: [PATCH] fix: Show Totals error with sort and group by together (#19072) --- superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts b/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts index 8178f6903..99a0da8ca 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts +++ b/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts @@ -144,6 +144,8 @@ const buildQuery: BuildQuery = ( row_limit: 0, row_offset: 0, post_processing: [], + order_desc: undefined, // we don't need orderby stuff here, + orderby: undefined, // because this query will be used for get total aggregation. }); }