From 4a71d660664eb3dccdbcd43e05cfe6a0a61b1526 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Fri, 21 Aug 2026 04:49:28 +0200 Subject: [PATCH] fix(dashboard): guard the synced-playback seek against a non-finite time Found while browser-testing the editor: a clip without a start yet makes ResultCard emit onPlay(NaN), and assigning that to currentTime throws in a mount effect, taking the whole tree down to a black screen. --- dashboard/src/components/ProcessingAnimation.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/ProcessingAnimation.jsx b/dashboard/src/components/ProcessingAnimation.jsx index 75f0e80..852f167 100644 --- a/dashboard/src/components/ProcessingAnimation.jsx +++ b/dashboard/src/components/ProcessingAnimation.jsx @@ -31,8 +31,9 @@ const ProcessingAnimation = ({ media, isComplete, syncedTime, isSyncedPlaying, s useEffect(() => { if (!isYouTube && videoRef.current) { if (isSyncedPlaying) { - // Sync Mode: Seek to time and Play - videoRef.current.currentTime = syncedTime; + // Sync Mode: Seek to time and Play. A non-finite time (a clip with no + // start yet) would throw and take the whole tree down — skip the seek. + if (Number.isFinite(syncedTime)) videoRef.current.currentTime = syncedTime; videoRef.current.play().catch(e => console.log("Auto-play prevented", e)); videoRef.current.loop = false; videoRef.current.muted = true; // Keep muted to avoid double audio with clip