This commit is contained in:
beabigegg
2025-08-17 16:04:27 +08:00
parent 37451d28f7
commit 6c406d082a

View File

@@ -73,7 +73,8 @@ const MeetingDetailPage = () => {
// Combined polling effect for both summary and preview tasks
useEffect(() => {
const task = summaryTask || previewTask;
if (!task || !['PENDING', 'PROGRESS'].includes(task.state)) return;
// FIX: Ensure the task and its status_url exist before starting to poll
if (!task || !task.status_url || !['PENDING', 'PROGRESS'].includes(task.state)) return;
const intervalId = setInterval(async () => {
try {