mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 21:42:27 +08:00
fix(video-viewer): handle undefined video status in radio group
This commit is contained in:
parent
8b875935d0
commit
953f0f4a2f
@ -17,7 +17,7 @@ export const VideoViewer = ({ video: _video }: VideoProps) => {
|
||||
{/* For test */}
|
||||
<RadioGroup
|
||||
label="Status"
|
||||
value={video?.status}
|
||||
value={video?.status ?? 'undefined'}
|
||||
onValueChange={(v) => {
|
||||
if (v !== 'undefined') setVideo({ ..._video, status: v as VideoStatus, progress: 60 } as Video)
|
||||
else setVideo(undefined)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user