diff --git a/packages/react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx b/packages/react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx index 825e09e78..db38e9770 100644 --- a/packages/react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx +++ b/packages/react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx @@ -31,7 +31,7 @@ export const DataGridColumnHiding = ({ size: 'small', }), [formatMessage]) - if (!allowColumnVisibilityControls || displayedState.layout === 'tiles') { + if (allowColumnVisibilityControls === false || displayedState.layout === 'tiles') { return null } diff --git a/packages/react-datagrid-ui/src/rendering/DataGridFullFilters.tsx b/packages/react-datagrid-ui/src/rendering/DataGridFullFilters.tsx index 42f72c9a8..5dc31fc1c 100644 --- a/packages/react-datagrid-ui/src/rendering/DataGridFullFilters.tsx +++ b/packages/react-datagrid-ui/src/rendering/DataGridFullFilters.tsx @@ -63,11 +63,10 @@ export function DataGridFullFilters({ ), }), [formatMessage]) - if (!allowAggregateFilterControls) { + if (allowAggregateFilterControls === false) { return null } - return (