Skip to content

Commit

Permalink
Speaker detail view error (#184)
Browse files Browse the repository at this point in the history
* fix issue when view speaker detail
rootcause: session got undefined because not sync to video yet
solution: exclude unsynced session from speaker profile view
  • Loading branch information
lcduong authored Jul 31, 2024
1 parent 40b4a5e commit c734966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/views/schedule/speakers/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default {
...mapGetters('schedule', ['sessionsLookup', 'favs']),
sessions () {
if (this.speaker.submissions) {
return this.speaker.submissions.map(submission => this.sessionsLookup[submission])
return this.speaker.submissions
.map(submission => this.sessionsLookup[submission])
.filter(session => session !== undefined);
}
return this.$store.getters['schedule/sessions'].filter(session => session.speakers.includes(this.speaker))
}
Expand Down

0 comments on commit c734966

Please sign in to comment.