diff --git a/components/schedule/ScheduleEvent.vue b/components/schedule/ScheduleEvent.vue index d37555521b..1eef2e0b2b 100644 --- a/components/schedule/ScheduleEvent.vue +++ b/components/schedule/ScheduleEvent.vue @@ -130,7 +130,7 @@ export default { event_id: eventId, speakers, } = this.value - if (eventType === 'keynote') { + if (eventType === 'keynote' && speakers[0].en_us) { const keynoteSpeakerId = speakers[0].en_us .replaceAll(' ', '_') .replaceAll('.', '') diff --git a/pages/conference/keynotes.vue b/pages/conference/keynotes.vue index 7c2d2b4399..b7d46a2d31 100644 --- a/pages/conference/keynotes.vue +++ b/pages/conference/keynotes.vue @@ -168,9 +168,11 @@ export default { }, methods: { getKeynoteId(keynote) { - return keynote.speaker.name_en_us - .replaceAll(' ', '_') - .replaceAll('.', '') + if (keynote.speaker.name_en_us) { + return keynote.speaker.name_en_us + .replaceAll(' ', '_') + .replaceAll('.', '') + } }, getAttributeByLocale(data, attr) { const localeMap = { 'en-us': 'en_us', 'zh-hant': 'zh_hant' }