Skip to content

Commit

Permalink
[DataGrid] Fix disableResetButton and disableShowHideToggle flags…
Browse files Browse the repository at this point in the history
… to not exclude each other (#12169)

Co-authored-by: Andrew Cherniavskii <[email protected]>
  • Loading branch information
adyry and cherniavskii authored Feb 28, 2024
1 parent 920c037 commit ea7c4ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function GridColumnsManagement(props: GridColumnsManagementProps) {
</GridColumnsManagementEmptyText>
)}
</GridColumnsManagementBody>
{!disableShowHideToggle && !disableResetButton && currentColumns.length > 0 ? (
{(!disableShowHideToggle || !disableResetButton) && currentColumns.length > 0 ? (
<GridColumnsManagementFooter ownerState={rootProps} className={classes.footer}>
{!disableShowHideToggle ? (
<FormControlLabel
Expand Down

0 comments on commit ea7c4ef

Please sign in to comment.