Skip to content

Commit

Permalink
Merge pull request #1658 from bcgov/feature/ALCS-1908
Browse files Browse the repository at this point in the history
Filter out PRs without Cards from Schedule
  • Loading branch information
dhaselhan authored May 7, 2024
2 parents 048d8e1 + 85a908d commit d6d77ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class DecisionMeetingController {
(meeting) => meeting.uuid === planningReferral.planningReview.uuid,
);

if (!meetingDate) {
if (!meetingDate || !planningReferral.card) {
return [];
}

Expand All @@ -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,
),
Expand Down

0 comments on commit d6d77ca

Please sign in to comment.