From 3c228caaac96d29960e878f69b8dadb5b8e8ffeb Mon Sep 17 00:00:00 2001 From: Christoph <29735603+Chr1s70ph@users.noreply.github.com> Date: Wed, 2 Nov 2022 11:26:13 +0100 Subject: [PATCH] FIX: error when no description is provided --- interactions/private/wochenplan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactions/private/wochenplan.ts b/interactions/private/wochenplan.ts index d91d45f..523c231 100644 --- a/interactions/private/wochenplan.ts +++ b/interactions/private/wochenplan.ts @@ -117,7 +117,7 @@ function wochenplan( )})__` } - if (weekdayEvent.description.indexOf('https://kit-lecture.zoom.us') !== -1) { + if (weekdayEvent.description?.indexOf('https://kit-lecture.zoom.us') !== -1) { /** * Add zoom hyperlink if available */