Skip to content

Commit

Permalink
Override query columns with formData groupby
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Feb 2, 2023
1 parent 087fcfc commit 56e6eee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default function buildQuery(formData: QueryFormData) {
fd,
queryObject,
)
? timeComparePivotOperator(fd, baseQueryObject)
: pivotOperator(fd, baseQueryObject);
? timeComparePivotOperator(fd, { ...queryObject, columns: fd.groupby })
: pivotOperator(fd, { ...queryObject, columns: fd.groupby });

const tmpQueryObject = {
...queryObject,
Expand Down

0 comments on commit 56e6eee

Please sign in to comment.