mirror of https://github.com/FreeTubeApp/FreeTube
Prevent throwing when poll choices do no have images (#3345)
This commit is contained in:
parent
86962f2802
commit
6513b5d517
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue