Fixed booking page not rendering due to missing linked event type (#654)

This commit is contained in:
Alex van Andel 2021-09-15 15:27:55 +01:00 committed by GitHub
parent 478b90a27d
commit 9980dcad6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ export default function Bookings({ bookings }) {
</span>
)}
<div className="text-sm text-neutral-900 font-medium truncate max-w-60 md:max-w-96">
{booking.eventType.team && <strong>{booking.eventType.team.name}: </strong>}
{booking.eventType?.team && <strong>{booking.eventType.team.name}: </strong>}
{booking.title}
</div>
<div className="sm:hidden">