修复 - 编辑按钮点击没反应

This commit is contained in:
北枳 2025-08-22 00:51:11 +08:00
parent b162a77741
commit 5473662fbb

View File

@ -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]}