Skip to content

Commit

Permalink
fix groupby filter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stevetracvc committed Aug 14, 2022
1 parent 394d62e commit c517d2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function PluginFilterGroupBy(props: PluginFilterGroupByProps) {
}, [JSON.stringify(defaultValue), multiSelect]);

const groupbys = ensureIsArray(formData.groupby).map(getColumnLabel);
const groupby = groupbys[0].length ? groupbys[0] : null;
const groupby = groupbys[0]?.length ? groupbys[0] : null;

const withData = groupby
? data.filter(row => groupby.includes(row.column_name as string))
Expand Down

0 comments on commit c517d2d

Please sign in to comment.