Skip to content

Commit

Permalink
Conditionally get the first assignment reason (#17808)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeauyeung authored Nov 22, 2024
1 parent b616612 commit 2263250
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app-store/routing-forms/trpc/report.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ function presenter(args: {
return [
...r,
currentRow.routedToBooking?.user?.email || "",
currentRow.routedToBooking?.assignmentReason[0].reasonString || "",
currentRow.routedToBooking?.assignmentReason.length
? currentRow.routedToBooking.assignmentReason[0].reasonString
: "",
currentRow.routedToBooking?.createdAt ? formatDate(currentRow.routedToBooking.createdAt) : "",
formatDate(currentRow.createdAt),
];
Expand Down

0 comments on commit 2263250

Please sign in to comment.