diff --git a/components/ui/shot-tab-content.tsx b/components/ui/shot-tab-content.tsx index b97da86..2ded065 100644 --- a/components/ui/shot-tab-content.tsx +++ b/components/ui/shot-tab-content.tsx @@ -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 && (