forked from 77media/video-flow
修复问题
This commit is contained in:
parent
3e4e947159
commit
7454eb8b3d
@ -403,7 +403,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
||||
|
||||
// 渲染视频内容
|
||||
const renderVideoContent = (onGotoCut: () => void) => {
|
||||
const urls = taskObject.videos.data[currentSketchIndex].urls ? taskObject.videos.data[currentSketchIndex].urls.join(',') : '';
|
||||
const urls = taskObject.videos.data[currentSketchIndex]?.urls ? taskObject.videos.data[currentSketchIndex]?.urls.join(',') : '';
|
||||
return (
|
||||
<div
|
||||
className="relative w-full h-full rounded-lg group"
|
||||
@ -433,7 +433,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
|
||||
{/* 视频 多个 取第一个 */}
|
||||
{ taskObject.videos.data[currentSketchIndex].urls && (
|
||||
@ -473,11 +473,11 @@ export const MediaViewer = React.memo(function MediaViewer({
|
||||
setVideoPreview(currentVideo.urls[0], currentVideo.video_id);
|
||||
if (onOpenChat) onOpenChat();
|
||||
}
|
||||
}} />
|
||||
}} />
|
||||
</Tooltip>
|
||||
{showGotoCutButton && (
|
||||
<Tooltip placement="top" title='Go to AI-powered editing platform'>
|
||||
<GlassIconButton icon={Scissors} size='sm' onClick={onGotoCut} />
|
||||
<GlassIconButton icon={Scissors} size='sm' onClick={onGotoCut} />
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
@ -613,7 +613,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
||||
whileTap={{ scale: 0.9 }}
|
||||
className="relative"
|
||||
>
|
||||
|
||||
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user