From 85a908dfcc4b56d63169220022e617bcebc7817c Mon Sep 17 00:00:00 2001 From: Daniel Haselhan Date: Mon, 6 May 2024 16:29:35 -0700 Subject: [PATCH] Filter out PRs without Cards from Schedule --- .../alcs/src/alcs/meetings/decision-meeting.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/apps/alcs/src/alcs/meetings/decision-meeting.controller.ts b/services/apps/alcs/src/alcs/meetings/decision-meeting.controller.ts index e88280287f..32daf27aaf 100644 --- a/services/apps/alcs/src/alcs/meetings/decision-meeting.controller.ts +++ b/services/apps/alcs/src/alcs/meetings/decision-meeting.controller.ts @@ -192,7 +192,7 @@ export class DecisionMeetingController { (meeting) => meeting.uuid === planningReferral.planningReview.uuid, ); - if (!meetingDate) { + if (!meetingDate || !planningReferral.card) { return []; } @@ -201,10 +201,10 @@ export class DecisionMeetingController { meetingDate: new Date(meetingDate.next_meeting).getTime(), fileNumber: planningReferral.planningReview.fileNumber, applicant: planningReferral.planningReview.documentName, - boardCode: planningReferral.card!.board.code, + boardCode: planningReferral.card.board.code, type: CARD_TYPE.PLAN, assignee: this.mapper.map( - planningReferral.card!.assignee, + planningReferral.card.assignee, User, UserDto, ),