fix(video): ensure thumbnail is not null before showing it

This commit is contained in:
icarus 2025-10-13 16:39:44 +08:00
parent 7a62418f41
commit 2ab3ddd804

View File

@ -72,7 +72,9 @@ const VideoListItem = ({ video, isActive, onClick }: { video: Video; isActive: b
}
const showProgress = video.status === 'in_progress' || video.status === 'downloading'
const showThumbnail = video.status === 'completed' || video.status === 'downloading' || video.status === 'downloaded'
const showThumbnail =
(video.status === 'completed' || video.status === 'downloading' || video.status === 'downloaded') &&
video.thumbnail !== null
return (
<div