From e2be5662ef5ad3d0d76313ec17381f7b61c58f64 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Thu, 1 Sep 2022 19:59:41 +0000 Subject: [PATCH] Fix empty descriptions throwing unexpected errors --- front/src/components/audio/podcast/Row.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/audio/podcast/Row.vue b/front/src/components/audio/podcast/Row.vue index e01735eaa..2fc5cffc3 100644 --- a/front/src/components/audio/podcast/Row.vue +++ b/front/src/components/audio/podcast/Row.vue @@ -53,7 +53,7 @@ const { activateTrack } = usePlayOptions(props) const fetchData = async () => { try { const response = await axios.get(`tracks/${props.track.id}/`) - description.value = response.data.description.text + description.value = response.data.description?.text ?? '' } catch (error) { useErrorHandler(error as Error) }