Skip to content

Commit

Permalink
Reverts unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed Dec 23, 2022
1 parent 6ee73b7 commit 07c4472
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/data/data-grid/column-menu/ColumnMenuGridPremium.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function ColumnMenuGridPremium() {
<div style={{ height: 400, width: '100%' }}>
<DataGridPremium
{...data}
apiRef={apiRef}
groupingColDef={{
leafField: 'title',
}}
Expand Down
1 change: 1 addition & 0 deletions docs/data/data-grid/column-menu/ColumnMenuGridPremium.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function ColumnMenuGridPremium() {
<div style={{ height: 400, width: '100%' }}>
<DataGridPremium
{...data}
apiRef={apiRef}
groupingColDef={{
leafField: 'title',
}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<DataGridPremium
{...data}
apiRef={apiRef}
groupingColDef={{
leafField: 'title',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useKeepGroupedColumnsHidden = (
);

React.useEffect(() => {
props.apiRef.current.subscribeEvent?.('rowGroupingModelChange', (newModel) => {
props.apiRef.current.subscribeEvent('rowGroupingModelChange', (newModel) => {
const columnVisibilityModel = updateColumnVisibilityModel(
gridColumnVisibilityModelSelector(props.apiRef),
newModel,
Expand Down

0 comments on commit 07c4472

Please sign in to comment.