fix3
This commit is contained in:
@@ -73,7 +73,8 @@ const MeetingDetailPage = () => {
|
|||||||
// Combined polling effect for both summary and preview tasks
|
// Combined polling effect for both summary and preview tasks
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const task = summaryTask || previewTask;
|
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 () => {
|
const intervalId = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user