Skip to content

Commit

Permalink
chore: wrap global filter in a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath authored and ccbc-service-account committed Nov 4, 2024
1 parent 396c7e9 commit 78e69f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/AnalystDashboard/AllDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ const AllDashboardTable: React.FC<Props> = ({ 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<MRT_VisibilityState>(
{ Lead: false, program: false }
);
Expand Down Expand Up @@ -622,7 +623,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
onShowColumnFiltersChange: setShowColumnFilters,
onColumnSizingChange: setColumnSizing,
enablePagination: false,
enableGlobalFilter: true,
enableGlobalFilter,
enableBottomToolbar: false,
filterFns: {
filterNumber,
Expand Down

0 comments on commit 78e69f7

Please sign in to comment.