Skip to content

Commit

Permalink
feat: groupby filter (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
simcha90 authored and zhaoyongjie committed Nov 26, 2021
1 parent 1e27e65 commit 2bb19f1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ const buildQuery: BuildQuery<TableChartFormData> = (formData: TableChartFormData
...extraQueries,
];
}

const interactiveGroupBy = formData.extra_form_data?.interactive_groupby;
if (interactiveGroupBy && queryObject.columns) {
queryObject.columns = [...new Set([...queryObject.columns, ...interactiveGroupBy])];
}

return [queryObject, ...extraQueries];
});
};
Expand Down

0 comments on commit 2bb19f1

Please sign in to comment.