Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Dec 21, 2021
1 parent b0c6b2a commit 2318cc1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export default function buildQuery(formData: PivotTableQueryFormData) {
let orderBy: QueryFormOrderBy[] | undefined;
if (series_limit_metric) {
orderBy = [[series_limit_metric, !order_desc]];
}
if (Array.isArray(metrics) && metrics[0]) {
} else if (Array.isArray(metrics) && metrics[0]) {
orderBy = [[metrics[0], !order_desc]];
}
return [
Expand Down

0 comments on commit 2318cc1

Please sign in to comment.