mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +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 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 (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user