Skip to content

Commit

Permalink
feat: updated column grouping menu (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Dec 31, 2024
1 parent 5e815ab commit 672219e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export const ColumnGrouping = <T extends RowData>({
getState,
options: { enableGrouping },
} = tableInstance;
if (!enableGrouping) return null;
const { grouping } = getState();
const groupingByColumnId = getColumnGrouping(tableInstance);
if (!enableGrouping) return null;
if (groupingByColumnId.size === 0) return null;
return (
<DropdownMenu
{...MENU_PROPS}
Expand Down

0 comments on commit 672219e

Please sign in to comment.