diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index c467aa3..e132f79 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -325,7 +325,7 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { if (task.task_status === 'COMPLETED') { taskCurrent.currentStage = 'final_video'; const videoUrl = task.task_result.video_url; - taskCurrent.final.url = typeof videoUrl === 'object' + taskCurrent.final.url = (videoUrl && typeof videoUrl === 'object') ? videoUrl.result?.watermarked_url : videoUrl; taskCurrent.final.note = 'watermark';