Skip to content

Commit

Permalink
Fix undefined company in BdbDetail to prevent crash (#5277)
Browse files Browse the repository at this point in the history
falbru authored Jan 11, 2025
1 parent ffa8649 commit 10ea8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/bdb/components/BdbDetail.tsx
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ const BdbDetail = () => {

const groupedStudentContacts = useMemo(
() => groupStudentContactsBySemester(company?.studentContacts ?? []),
[company.studentContacts],
[company?.studentContacts],
);

const navigate = useNavigate();

0 comments on commit 10ea8f5

Please sign in to comment.