diff --git a/components/ui/shot-tab-content.tsx b/components/ui/shot-tab-content.tsx index 27b6705..cac8c76 100644 --- a/components/ui/shot-tab-content.tsx +++ b/components/ui/shot-tab-content.tsx @@ -57,9 +57,10 @@ export const ShotTabContent = (props: ShotTabContentProps) => { useEffect(() => { if (pendingRegeneration) { console.log('pendingRegeneration', pendingRegeneration, shotData[selectedIndex]?.lens); - regenerateVideoSegment(); - setPendingRegeneration(false); - setIsRegenerate(false); + regenerateVideoSegment().then(() => { + setPendingRegeneration(false); + setIsRegenerate(false); + }); } }, [pendingRegeneration]); @@ -243,12 +244,12 @@ export const ShotTabContent = (props: ShotTabContentProps) => { whileHover={{ scale: 1.02 }} whileTap={{ scale: 0.98 }} > - {shot.status === 0 && ( + {(shot.status === 0 || shot.videoUrl.length === 0) && (