forked from 77media/video-flow
修复 - 编辑按钮点击没反应
This commit is contained in:
parent
b162a77741
commit
5473662fbb
@ -128,7 +128,7 @@ export const ShotTabContent = forwardRef<
|
||||
const updateData: VideoSegmentEntity[] = [];
|
||||
shotData.forEach((shot, index) => {
|
||||
const a = shot.videoUrl.map((url) => url.video_url).join(',');
|
||||
const b = originalVideos[index].urls.join(',');
|
||||
const b = originalVideos[index].urls?.join(',') || '';
|
||||
if (a !== b) {
|
||||
updateData.push({
|
||||
...shot,
|
||||
@ -327,7 +327,7 @@ export const ShotTabContent = forwardRef<
|
||||
whileHover={{ scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
{shot.urls.length > 0 && (
|
||||
{shot.urls && shot.urls.length > 0 && (
|
||||
<video
|
||||
src={shot.urls[0]}
|
||||
key={shot.urls[0]}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user