fix: check if appslug exist (#11735)
parent
f9c578c87d
commit
ceb8906c27
|
@ -996,7 +996,7 @@ async function handler(
|
||||||
if (isTeamEventType && locationBodyString === OrganizerDefaultConferencingAppType) {
|
if (isTeamEventType && locationBodyString === OrganizerDefaultConferencingAppType) {
|
||||||
const metadataParseResult = userMetadataSchema.safeParse(organizerUser.metadata);
|
const metadataParseResult = userMetadataSchema.safeParse(organizerUser.metadata);
|
||||||
const organizerMetadata = metadataParseResult.success ? metadataParseResult.data : undefined;
|
const organizerMetadata = metadataParseResult.success ? metadataParseResult.data : undefined;
|
||||||
if (organizerMetadata) {
|
if (organizerMetadata?.defaultConferencingApp?.appSlug) {
|
||||||
const app = getAppFromSlug(organizerMetadata?.defaultConferencingApp?.appSlug);
|
const app = getAppFromSlug(organizerMetadata?.defaultConferencingApp?.appSlug);
|
||||||
locationBodyString = app?.appData?.location?.type || locationBodyString;
|
locationBodyString = app?.appData?.location?.type || locationBodyString;
|
||||||
organizerOrFirstDynamicGroupMemberDefaultLocationUrl =
|
organizerOrFirstDynamicGroupMemberDefaultLocationUrl =
|
||||||
|
|
Loading…
Reference in New Issue