Solutionunvalidated
Use the `getRowCanExpand` prop to conditionally allow expansion only when the group has more than one leaf row (e.g., `getRowCanExpand={row => row.getLeafRows().length > 1}`).
8cd08ac3-7da0-4f2b-a0d5-b30d4c495423
Use the getRowCanExpand prop to conditionally allow expansion only when the group has more than one leaf row (e.g., getRowCanExpand={row => row.getLeafRows().length > 1}).