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 5, 2024
1 parent c05984d commit 0d0c9bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 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 @@ -434,7 +435,8 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
: application.node.intakeNumber,
projectId: application.node.ccbcNumber,
packageNumber: application.node.package,
projectTitle: application.node.projectName,
projectTitle: application.node.projectName ?? '',
organizationName: application.node.organizationName ?? '',
isCbcProject: false,
showLink: true,
externalStatusOrder: statusOrderMap[application.node.externalStatus],
Expand All @@ -458,8 +460,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
]
: null,
packageNumber: null,
organizationName:
project.node.jsonData.currentOperatingName || null,
organizationName: project.node.jsonData.currentOperatingName || '',
lead: null,
isCbcProject: true,
showLink: showCbcProjectsLink,
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 0d0c9bf

Please sign in to comment.