From 6513b5d517af2b8b24f85256ffb766c0aa06ccf6 Mon Sep 17 00:00:00 2001 From: Emma Date: Wed, 22 Mar 2023 15:03:37 -0400 Subject: [PATCH] Prevent throwing when poll choices do no have images (#3345) --- src/renderer/helpers/api/invidious.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/helpers/api/invidious.js b/src/renderer/helpers/api/invidious.js index 858902b25..8715f0de5 100644 --- a/src/renderer/helpers/api/invidious.js +++ b/src/renderer/helpers/api/invidious.js @@ -221,7 +221,7 @@ function parseInvidiousCommunityAttachments(data) { content: data.choices.map(choice => { return { text: choice.text, - image: choice.image.map(thumbnail => { + image: choice.image?.map(thumbnail => { thumbnail.url = youtubeImageUrlToInvidious(thumbnail.url) return thumbnail })