Skip to content

Commit c37a428

Browse files
committed
being more defensive on speaker undefined values
1 parent c839d95 commit c37a428

File tree

1 file changed

+3
-3
lines changed
  • cloud/functions/src/crawlers/openplanner

1 file changed

+3
-3
lines changed

cloud/functions/src/crawlers/openplanner/crawler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ export const OPENPLANNER_CRAWLER: CrawlerKind<typeof OPENPLANNER_DESCRIPTOR_PARS
9797
const speaker: Speaker = {
9898
id: openPlannerSpeaker.id,
9999
fullName: openPlannerSpeaker.name,
100-
bio: openPlannerSpeaker.bio,
101-
photoUrl: openPlannerSpeaker.photoUrl,
102-
companyName: openPlannerSpeaker.company,
100+
bio: openPlannerSpeaker.bio || null,
101+
photoUrl: openPlannerSpeaker.photoUrl || null,
102+
companyName: openPlannerSpeaker.company || null,
103103
social: openPlannerSpeaker.socials.map(opSocial => {
104104
const type = match([opSocial.icon, opSocial.name])
105105
.with(['github', P.any], () => 'github' as const)

0 commit comments

Comments
 (0)