mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
fix(video): ensure thumbnail is not null before showing it
This commit is contained in:
parent
7a62418f41
commit
2ab3ddd804
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user