In selfhosted, calvideo isnt default and thus an event can be created without location. Handle that (#5457)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/5399/head^2
parent
0ff38dece2
commit
04e62a10e6
|
@ -85,7 +85,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
|||
const eventType = {
|
||||
...eventTypeRaw,
|
||||
//TODO: Use zodSchema to verify it instead of using Type Assertion
|
||||
locations: privacyFilteredLocations(eventTypeRaw.locations as LocationObject[]),
|
||||
locations: privacyFilteredLocations((eventTypeRaw.locations || []) as LocationObject[]),
|
||||
recurringEvent: parseRecurringEvent(eventTypeRaw.recurringEvent),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue