From d127b5dd01b4ca041837b691f2bfcc0732fc57da Mon Sep 17 00:00:00 2001 From: David Matejka Date: Tue, 1 Aug 2023 15:23:50 +0200 Subject: [PATCH] fix: visibility controls and full filters hiding fix --- .../react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx | 2 +- .../react-datagrid-ui/src/rendering/DataGridFullFilters.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx b/packages/react-datagrid-ui/src/rendering/DataGridColumnHiding.tsx index 825e09e789..db38e97709 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 42f72c9a8e..5dc31fc1c9 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 (