diff --git a/frontend/src/pages/ProcessingPage.jsx b/frontend/src/pages/ProcessingPage.jsx index 1050091..1dfbde6 100644 --- a/frontend/src/pages/ProcessingPage.jsx +++ b/frontend/src/pages/ProcessingPage.jsx @@ -88,7 +88,8 @@ const ProcessingPage = () => { useEffect(() => { const intervalIds = Object.entries(tasks).map(([key, task]) => { - if (task && (task.state === 'PENDING' || task.state === 'PROGRESS')) { + // FIX: Ensure the task and its status_url exist before starting to poll + if (task && task.status_url && (task.state === 'PENDING' || task.state === 'PROGRESS')) { const intervalId = setInterval(async () => { try { const updatedTask = await pollTaskStatus(task.status_url);