Skip to content

Commit

Permalink
Merge pull request #3316 from bcgov/NDT-356-Filter-on-all-dashboard-c…
Browse files Browse the repository at this point in the history
…auses-type-error

fix: filter on all dashboard due to undefined intake
  • Loading branch information
rafasdc authored May 30, 2024
2 parents fc77383 + 9b78ac0 commit 3ac9cfe
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 @@ -394,7 +394,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
rowId: project.node.cbcId,
...project.node.jsonData,
zones: [],
intakeNumber: project.node.jsonData.intake,
intakeNumber: project.node.jsonData?.intake || 'N/A',
projectId: project.node.jsonData.projectNumber,
internalStatus: null,
externalStatus: project.node.jsonData.projectStatus
Expand All @@ -416,6 +416,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
...new Set(
allApplications.edges.map((edge) => edge.node?.intakeNumber?.toString())
),
'N/A',
];

const uniqueZones = [
Expand Down

0 comments on commit 3ac9cfe

Please sign in to comment.