From 957743d83a01fb433f549cdb299ff36fba64d3db Mon Sep 17 00:00:00 2001 From: beabigegg Date: Sun, 17 Aug 2025 17:48:19 +0800 Subject: [PATCH] fix4 --- frontend/src/pages/ProcessingPage.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);