From 78e69f7f275edb37dbd49012f9c598a1f8a141c0 Mon Sep 17 00:00:00 2001 From: R Ranathunga Date: Mon, 4 Nov 2024 10:01:01 -0800 Subject: [PATCH] chore: wrap global filter in a flag --- app/components/AnalystDashboard/AllDashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/AnalystDashboard/AllDashboard.tsx b/app/components/AnalystDashboard/AllDashboard.tsx index c151fc540..6a732fc57 100644 --- a/app/components/AnalystDashboard/AllDashboard.tsx +++ b/app/components/AnalystDashboard/AllDashboard.tsx @@ -265,6 +265,7 @@ const AllDashboardTable: React.FC = ({ query }) => { const showCbcProjects = useFeature('show_cbc_projects').value ?? false; const showCbcProjectsLink = useFeature('show_cbc_view_link').value ?? false; const freezeHeader = useFeature('freeze_dashboard_header').value ?? false; + const enableGlobalFilter = useFeature('show_global_filter').value ?? false; const [columnVisibility, setColumnVisibility] = useState( { Lead: false, program: false } ); @@ -622,7 +623,7 @@ const AllDashboardTable: React.FC = ({ query }) => { onShowColumnFiltersChange: setShowColumnFilters, onColumnSizingChange: setColumnSizing, enablePagination: false, - enableGlobalFilter: true, + enableGlobalFilter, enableBottomToolbar: false, filterFns: { filterNumber,