From 1994fdee30170789ff502973ccaf3f6c880ef510 Mon Sep 17 00:00:00 2001 From: Luisa Date: Thu, 2 May 2024 17:40:53 +0200 Subject: [PATCH] Fix TypeError in console when deleting active speaker --- .../components/speaking-times/speaking-times.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/modules/list-of-speakers-content/components/speaking-times/speaking-times.component.ts b/client/src/app/site/pages/meetings/modules/list-of-speakers-content/components/speaking-times/speaking-times.component.ts index c0e4d2a6eb..ca7f6123a9 100644 --- a/client/src/app/site/pages/meetings/modules/list-of-speakers-content/components/speaking-times/speaking-times.component.ts +++ b/client/src/app/site/pages/meetings/modules/list-of-speakers-content/components/speaking-times/speaking-times.component.ts @@ -83,7 +83,9 @@ export class SpeakingTimesComponent implements OnDestroy { ) ) .subscribe(speaker => { - this.updateSpeakingTime(speaker.structure_level_list_of_speakers); + if (speaker) { + this.updateSpeakingTime(speaker.structure_level_list_of_speakers); + } }) ); }